pub enum ReferenceMode {
Shallow,
Recursive,
}Variants§
Shallow
Reference is shallow. Children not yet referenced.
Recursive
All direct children has been referenced by this reference.
Implementations§
Source§impl ReferenceMode
impl ReferenceMode
pub fn is_recursive(&self) -> bool
Trait Implementations§
Source§impl Clone for ReferenceMode
impl Clone for ReferenceMode
Source§fn clone(&self) -> ReferenceMode
fn clone(&self) -> ReferenceMode
Returns a duplicate 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 ReferenceMode
impl Debug for ReferenceMode
Source§impl Default for ReferenceMode
impl Default for ReferenceMode
Source§fn default() -> ReferenceMode
fn default() -> ReferenceMode
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ReferenceMode
impl<'de> Deserialize<'de> for ReferenceMode
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for ReferenceMode
impl Hash for ReferenceMode
Source§impl Ord for ReferenceMode
impl Ord for ReferenceMode
Source§fn cmp(&self, other: &ReferenceMode) -> Ordering
fn cmp(&self, other: &ReferenceMode) -> 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 ReferenceMode
impl PartialEq for ReferenceMode
Source§impl PartialOrd for ReferenceMode
impl PartialOrd for ReferenceMode
Source§impl Serialize for ReferenceMode
impl Serialize for ReferenceMode
impl Eq for ReferenceMode
impl StructuralPartialEq for ReferenceMode
Auto Trait Implementations§
impl Freeze for ReferenceMode
impl RefUnwindSafe for ReferenceMode
impl Send for ReferenceMode
impl Sync for ReferenceMode
impl Unpin for ReferenceMode
impl UnsafeUnpin for ReferenceMode
impl UnwindSafe for ReferenceMode
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<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