pub struct WritableKeyPath<Root, Value, F>{ /* private fields */ }Implementations§
Source§impl<Root, Value, F> WritableKeyPath<Root, Value, F>
impl<Root, Value, F> WritableKeyPath<Root, Value, F>
pub fn new(getter: F) -> Self
pub fn get_mut<'r>(&self, root: &'r mut Root) -> &'r mut Value
pub fn for_box<Target>(
self,
) -> WritableKeyPath<Root, Target, impl for<'r> Fn(&'r mut Root) -> &'r mut Target + 'static>where
Value: DerefMut<Target = Target> + 'static,
F: 'static,
pub fn for_arc<Target>(
self,
) -> WritableKeyPath<Root, Target, impl for<'r> Fn(&'r mut Root) -> &'r mut Target + 'static>where
Value: DerefMut<Target = Target> + 'static,
F: 'static,
pub fn for_rc<Target>(
self,
) -> WritableKeyPath<Root, Target, impl for<'r> Fn(&'r mut Root) -> &'r mut Target + 'static>where
Value: DerefMut<Target = Target> + 'static,
F: 'static,
Source§impl<Root, Value, F> WritableKeyPath<Root, Value, F>
impl<Root, Value, F> WritableKeyPath<Root, Value, F>
Sourcepub fn to_partial(self) -> PartialWritableKeyPath<Root>
pub fn to_partial(self) -> PartialWritableKeyPath<Root>
Convert to PartialWritableKeyPath (hides Value type)
Sourcepub fn to(self) -> PartialWritableKeyPath<Root>
pub fn to(self) -> PartialWritableKeyPath<Root>
Alias for to_partial() - converts to PartialWritableKeyPath
Trait Implementations§
Source§impl<Root: Clone, Value: Clone, F> Clone for WritableKeyPath<Root, Value, F>
impl<Root: Clone, Value: Clone, F> Clone for WritableKeyPath<Root, Value, F>
Source§fn clone(&self) -> WritableKeyPath<Root, Value, F>
fn clone(&self) -> WritableKeyPath<Root, Value, F>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<Root, Value, F> Freeze for WritableKeyPath<Root, Value, F>where
F: Freeze,
impl<Root, Value, F> RefUnwindSafe for WritableKeyPath<Root, Value, F>
impl<Root, Value, F> Send for WritableKeyPath<Root, Value, F>
impl<Root, Value, F> Sync for WritableKeyPath<Root, Value, F>
impl<Root, Value, F> Unpin for WritableKeyPath<Root, Value, F>
impl<Root, Value, F> UnwindSafe for WritableKeyPath<Root, Value, F>
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