[−][src]Struct zamm_yin::graph::value_wrappers::WeakValue
KBValue for weak references to data.
Implementations
impl<T: ?Sized> 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 + ?Sized> Debug for WeakValue<T>
[src]
impl<'a, T: ?Sized + 'static> KBValue for WeakValue<T>
[src]
Auto Trait Implementations
impl<T> !RefUnwindSafe for WeakValue<T>
[src]
impl<T> !Send for WeakValue<T>
[src]
impl<T> !Sync for WeakValue<T>
[src]
impl<T: ?Sized> Unpin for WeakValue<T>
[src]
impl<T> !UnwindSafe for WeakValue<T>
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Typeable for T where
T: Any,
T: Any,