Enum tvix_eval::value::PointerEquality
source · pub enum PointerEquality {
ForbidAll,
AllowNested,
AllowAll,
}
Expand description
Controls what kind of by-pointer equality comparison is allowed.
See //tvix/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§fn eq(&self, other: &PointerEquality) -> bool
fn eq(&self, other: &PointerEquality) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for PointerEquality
impl PartialOrd for PointerEquality
source§fn partial_cmp(&self, other: &PointerEquality) -> Option<Ordering>
fn partial_cmp(&self, other: &PointerEquality) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl 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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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<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