pub struct StructuralOptions {
pub map_free_vars: bool,
pub skip_tensor_content: bool,
}Expand description
Options of structural equality and hashing.
See also structural_equal_with, structural_hash_with and
get_first_structural_mismatch_with.
Fields§
§map_free_vars: boolWhether free variables (variables without a definition site) can be mapped to each other.
skip_tensor_content: boolWhether to skip the data content of tensors.
Trait Implementations§
Source§impl Clone for StructuralOptions
impl Clone for StructuralOptions
Source§fn clone(&self) -> StructuralOptions
fn clone(&self) -> StructuralOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for StructuralOptions
Source§impl Debug for StructuralOptions
impl Debug for StructuralOptions
Source§impl Default for StructuralOptions
impl Default for StructuralOptions
Source§fn default() -> StructuralOptions
fn default() -> StructuralOptions
Returns the “default value” for a type. Read more
impl Eq for StructuralOptions
Source§impl PartialEq for StructuralOptions
impl PartialEq for StructuralOptions
impl StructuralPartialEq for StructuralOptions
Auto Trait Implementations§
impl Freeze for StructuralOptions
impl RefUnwindSafe for StructuralOptions
impl Send for StructuralOptions
impl Sync for StructuralOptions
impl Unpin for StructuralOptions
impl UnsafeUnpin for StructuralOptions
impl UnwindSafe for StructuralOptions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more