pub struct ParamState<T> { /* private fields */ }Implementations§
Source§impl<T> ParamState<T>
impl<T> ParamState<T>
pub fn update(&mut self, new_value: &T) -> bool
update for an Rc or Arc parameter: the same
allocation is unchanged without comparing its contents, which
PartialEq on a pointer to a type that is not Eq otherwise walks
in full on every recomposition.
pub fn value(&self) -> Option<T>where
T: Clone,
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for ParamState<T>
impl<T> RefUnwindSafe for ParamState<T>where
Option<T>: RefUnwindSafe,
impl<T> Send for ParamState<T>
impl<T> Sync for ParamState<T>
impl<T> Unpin for ParamState<T>
impl<T> UnsafeUnpin for ParamState<T>where
Option<T>: UnsafeUnpin,
impl<T> UnwindSafe for ParamState<T>where
Option<T>: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more