pub enum PointerEquality {
ForbidAll,
AllowNested,
AllowAll,
}Expand description
Controls what kind of by-pointer equality comparison is allowed.
See //snix/docs/value-pointer-equality.md for details.
Variants§
ForbidAll
Pointer equality not allowed at all.
AllowNested
Pointer equality comparisons only allowed for nested values.
AllowAll
Pointer equality comparisons are allowed in all contexts.
Trait Implementations§
Source§impl Clone for PointerEquality
impl Clone for PointerEquality
Source§fn clone(&self) -> PointerEquality
fn clone(&self) -> PointerEquality
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PointerEquality
impl Debug for PointerEquality
Source§impl Ord for PointerEquality
impl Ord for PointerEquality
Source§fn cmp(&self, other: &PointerEquality) -> Ordering
fn cmp(&self, other: &PointerEquality) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for PointerEquality
impl PartialEq for PointerEquality
Source§impl PartialOrd for PointerEquality
impl PartialOrd for PointerEquality
impl Copy for PointerEquality
impl Eq for PointerEquality
impl StructuralPartialEq for PointerEquality
Auto Trait Implementations§
impl Freeze for PointerEquality
impl RefUnwindSafe for PointerEquality
impl Send for PointerEquality
impl Sync for PointerEquality
impl Unpin for PointerEquality
impl UnwindSafe for PointerEquality
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more