[−][src]Struct polyhorn_core::WeakReference
Implementations
impl<P: ?Sized, T> WeakReference<P, T> where
P: Platform,
T: 'static, [src]
P: Platform,
T: 'static,
pub fn new(weak: Weak<P>, reference: Reference<T>) -> WeakReference<P, T>[src]
pub fn replace(&self, value: T) -> Option<T>[src]
pub fn apply<F, O>(&self, op: F) -> Option<O> where
F: FnOnce(&mut T) -> O, [src]
F: FnOnce(&mut T) -> O,
pub fn with_link<F, O>(&self, op: F) -> Option<O> where
F: FnOnce(&WeakLink<'_, P>) -> O, [src]
F: FnOnce(&WeakLink<'_, P>) -> O,
pub fn queue_rerender(&self) -> bool[src]
Trait Implementations
impl<P: ?Sized, T> Clone for WeakReference<P, T> where
P: Platform,
T: 'static, [src]
P: Platform,
T: 'static,
fn clone(&self) -> Self[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
Auto Trait Implementations
impl<P, T> !RefUnwindSafe for WeakReference<P, T>
impl<P, T> !Send for WeakReference<P, T>
impl<P, T> !Sync for WeakReference<P, T>
impl<P: ?Sized, T> Unpin for WeakReference<P, T> where
T: Unpin,
T: Unpin,
impl<P, T> !UnwindSafe for WeakReference<P, T>
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,
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> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
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.
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>,