Struct PropertyUpdate
pub struct PropertyUpdate<'a, C, T> {
pub new_value: T,
pub field_name: &'a str,
pub get_field_mut: fn(_: &mut C) -> &mut T,
}
Fields§
§new_value: T
§field_name: &'a str
§get_field_mut: fn(_: &mut C) -> &mut T
Implementations§
§impl<C, T> PropertyUpdate<'_, C, T>
impl<C, T> PropertyUpdate<'_, C, T>
pub fn set(self, obj: &mut C)
pub fn set_custom(self, obj: &mut C, value: T)
Auto Trait Implementations§
impl<'a, C, T> Freeze for PropertyUpdate<'a, C, T>where
T: Freeze,
impl<'a, C, T> RefUnwindSafe for PropertyUpdate<'a, C, T>where
T: RefUnwindSafe,
impl<'a, C, T> Send for PropertyUpdate<'a, C, T>where
T: Send,
impl<'a, C, T> Sync for PropertyUpdate<'a, C, T>where
T: Sync,
impl<'a, C, T> Unpin for PropertyUpdate<'a, C, T>where
T: Unpin,
impl<'a, C, T> UnwindSafe for PropertyUpdate<'a, C, T>where
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