pub enum EqualityRecipe {
Operator,
Method {
owner: Option<Symbol>,
},
Slice(Option<Box<ElementEquality>>),
Map(Option<Box<ElementEquality>>),
}Expand description
How a program tests two values of one type for equality, as the checker selected it.
Variants§
Operator
Go ==.
Method
The equals method of owner, or of a type parameter whose bound declares it when owner is absent.
Slice(Option<Box<ElementEquality>>)
slices.Equal, or slices.EqualFunc with the equality of the elements when they need one.
Map(Option<Box<ElementEquality>>)
maps.Equal, or maps.EqualFunc with the equality of the values when they need one.
Implementations§
Trait Implementations§
Source§impl Clone for EqualityRecipe
impl Clone for EqualityRecipe
Source§impl Debug for EqualityRecipe
impl Debug for EqualityRecipe
Source§impl PartialEq for EqualityRecipe
impl PartialEq for EqualityRecipe
impl StructuralPartialEq for EqualityRecipe
Auto Trait Implementations§
impl Forget for EqualityRecipe
impl Freeze for EqualityRecipewhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
*const ElementEquality is !null: Freeze,
PhantomData<ElementEquality>: Freeze,
impl Move for EqualityRecipe
impl RefUnwindSafe for EqualityRecipe
impl Send for EqualityRecipe
impl Sync for EqualityRecipe
impl Unpin for EqualityRecipe
impl UnsafeUnpin for EqualityRecipewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const ElementEquality is !null: UnsafeUnpin,
PhantomData<ElementEquality>: UnsafeUnpin,
impl UnwindSafe for EqualityRecipe
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