[][src]Struct zamm_yin::graph::value_wrappers::WeakValue

pub struct WeakValue<T: Any> { /* fields omitted */ }

KBValue for weak references to data.

Implementations

impl<T: Any> WeakValue<T>[src]

pub fn new(rc: &Rc<T>) -> Self[src]

Create a new KB wrapper that contains a weak reference to the given data.

pub fn value(&self) -> Option<Rc<T>>[src]

Retrieve the value that this wrapper points to -- if it still exists, because the KB does not own the data.

Trait Implementations

impl<T: Debug + Any> Debug for WeakValue<T>[src]

impl<'a, T: Any + 'static> KBValue for WeakValue<T>[src]

Auto Trait Implementations

impl<T> !RefUnwindSafe for WeakValue<T>

impl<T> !Send for WeakValue<T>

impl<T> !Sync for WeakValue<T>

impl<T> Unpin for WeakValue<T>

impl<T> !UnwindSafe for WeakValue<T>

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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

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

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> 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> Typeable for T where
    T: Any