[][src]Struct swim_structure::item::Extant

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

Value variant representing a defined—but unspecified—value.

Methods

impl Extant[src]

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

Constructs a new Extant value.

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

Upcasts this Extant reference to a Value reference.

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

Upcasts this Extant reference to a mutable Value reference.

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

Upcasts Extant to a Value.

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

Upcasts Extant to an Item.

Trait Implementations

impl PartialEq<Extant> for Extant[src]

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

This method tests for !=.

impl Eq for Extant[src]

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

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

impl Debug for Extant[src]

impl Hash for Extant[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 Extant[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 Extant[src]

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

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

impl TryClone for Extant[src]

impl<'a> CloneIntoHold<'a, Extant> for Extant[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 Extant

impl Sync for Extant

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]