[][src]Struct swim_structure::item::Absent

#[repr(C)]
pub struct Absent { /* fields omitted */ }

Value variant representing an undefined value.

Methods

impl Absent[src]

pub const fn new() -> Absent[src]

Constructs a new Absent value.

pub fn as_value<'a>(&self) -> &Value<'a>[src]

Upcasts this Absent reference to a Value reference.

pub fn as_mut_value<'a>(&mut self) -> &mut Value<'a>[src]

Upcasts this Absent reference to a mutable Value reference.

pub fn into_value<'a>(self) -> Value<'a>[src]

Upcasts Absent to a Value.

pub fn into_item<'a>(self) -> Item<'a>[src]

Upcasts Absent to an Item.

Trait Implementations

impl PartialEq<Absent> for Absent[src]

#[must_use]
default fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]

This method tests for !=.

impl Eq for Absent[src]

impl<'a> From<Absent> for Item<'a>[src]

impl<'a> From<Absent> for Value<'a>[src]

impl Debug for Absent[src]

impl Hash for Absent[src]

default fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl Clone for Absent[src]

default fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl<'a> AsMut<Value<'a>> for Absent[src]

impl<'a> AsRef<Value<'a>> for Absent[src]

impl<'b> Stow<'b, Absent> for Absent[src]

impl TryClone for Absent[src]

impl<'a> CloneIntoHold<'a, Absent> for Absent[src]

default fn clone_into_hold(&self, hold: &dyn Hold<'a>) -> T[src]

Returns a clone of self allocated in hold. Read more

Auto Trait Implementations

impl Send for Absent

impl Sync for Absent

Blanket Implementations

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<'b, S, T> StowFrom for T where
    S: Stow<'b, T>, 
[src]

default fn stow_from(value: T, hold: &dyn Hold<'b>) -> Self[src]

impl<'b, S, T> StowInto for S where
    T: StowFrom<'b, S>, 
[src]

default fn stow_into(self, hold: &dyn Hold<'b>) -> T[src]