pub struct NoneGetter;Expand description
Getter always returning Ok(None).
Implementations§
Source§impl NoneGetter
impl NoneGetter
Sourcepub const fn new() -> Self
pub const fn new() -> Self
Constructor for NoneGetter. Since NoneGetter is a unit struct, you can use this or just
the struct’s name.
Trait Implementations§
Source§impl<E: Copy + Debug> Updatable<E> for NoneGetter
impl<E: Copy + Debug> Updatable<E> for NoneGetter
Source§fn update(&mut self) -> NothingOrError<E>
fn update(&mut self) -> NothingOrError<E>
As this trait is very generic, exactly what this does will be very dependent on the
implementor.
Auto Trait Implementations§
impl Freeze for NoneGetter
impl RefUnwindSafe for NoneGetter
impl Send for NoneGetter
impl Sync for NoneGetter
impl Unpin for NoneGetter
impl UnwindSafe for NoneGetter
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