Enum vonuvoli_scheme::exports::PairRef [−][src]
pub enum PairRef<'a> { Immutable(&'a StdRc<PairImmutableInternals>, &'a PairImmutableInternals), ImmutableEmbedded(StdRc<PairImmutableInternals>, &'a PairImmutableInternals), Mutable(&'a StdRc<StdRefCell<PairMutableInternals>>, StdRef<'a, PairMutableInternals>), MutableEmbedded(StdRc<StdRefCell<PairMutableInternals>>, StdRef<'a, PairMutableInternals>), }
Variants
Immutable(&'a StdRc<PairImmutableInternals>, &'a PairImmutableInternals)
ImmutableEmbedded(StdRc<PairImmutableInternals>, &'a PairImmutableInternals)
Mutable(&'a StdRc<StdRefCell<PairMutableInternals>>, StdRef<'a, PairMutableInternals>)
MutableEmbedded(StdRc<StdRefCell<PairMutableInternals>>, StdRef<'a, PairMutableInternals>)
Methods
impl<'a> PairRef<'a>
[src]
impl<'a> PairRef<'a>
pub fn try_ref(value: &Value) -> Outcome<PairRef>
[src]
pub fn try_ref(value: &Value) -> Outcome<PairRef>
pub fn new_embedded_immutable(value: PairImmutable) -> PairRef<'static>
[src]
pub fn new_embedded_immutable(value: PairImmutable) -> PairRef<'static>
pub fn new_embedded_mutable(value: PairMutable) -> Outcome<PairRef<'static>>
[src]
pub fn new_embedded_mutable(value: PairMutable) -> Outcome<PairRef<'static>>
pub fn clone_ref(&self) -> PairRef<'a>
[src]
pub fn clone_ref(&self) -> PairRef<'a>
pub fn value_clone(&self) -> Value
[src]
pub fn value_clone(&self) -> Value
pub fn value_is_self(&self, other: &PairRef) -> bool
[src]
pub fn value_is_self(&self, other: &PairRef) -> bool
pub fn left_ref_into(self) -> ValueRef<'a>
[src]
pub fn left_ref_into(self) -> ValueRef<'a>
pub fn right_ref_into(self) -> ValueRef<'a>
[src]
pub fn right_ref_into(self) -> ValueRef<'a>
Trait Implementations
impl<'a> StdAsRef<PairRef<'a>> for PairRef<'a>
[src]
impl<'a> StdAsRef<PairRef<'a>> for PairRef<'a>
impl<'a> Eq for PairRef<'a>
[src]
impl<'a> Eq for PairRef<'a>
impl<'a> PartialEq for PairRef<'a>
[src]
impl<'a> PartialEq for PairRef<'a>
fn eq(&self, other: &PairRef) -> bool
[src]
fn eq(&self, other: &PairRef) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
fn ne(&self, other: &Rhs) -> bool
This method tests for !=
.
impl<'a> Ord for PairRef<'a>
[src]
impl<'a> Ord for PairRef<'a>
fn cmp(&self, other: &PairRef) -> Ordering
[src]
fn cmp(&self, other: &PairRef) -> Ordering
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
1.21.0[src]
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
impl<'a> PartialOrd for PairRef<'a>
[src]
impl<'a> PartialOrd for PairRef<'a>
fn partial_cmp(&self, other: &PairRef) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &PairRef) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &Rhs) -> bool
1.0.0[src]
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 more
fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
fn gt(&self, other: &Rhs) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
fn ge(&self, other: &Rhs) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl<'a> Pair for PairRef<'a>
[src]
impl<'a> Pair for PairRef<'a>