Struct UnwrapLens
pub struct UnwrapLens<T> { /* private fields */ }
Implementations§
§impl<T> UnwrapLens<T>
impl<T> UnwrapLens<T>
pub fn new() -> UnwrapLens<T>
Trait Implementations§
§impl<T> Clone for UnwrapLens<T>
impl<T> Clone for UnwrapLens<T>
§fn clone(&self) -> UnwrapLens<T>
fn clone(&self) -> UnwrapLens<T>
Returns a copy 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 more§impl<T> Debug for UnwrapLens<T>where
T: 'static,
impl<T> Debug for UnwrapLens<T>where
T: 'static,
§impl<T> Default for UnwrapLens<T>where
T: Default,
impl<T> Default for UnwrapLens<T>where
T: Default,
§fn default() -> UnwrapLens<T>
fn default() -> UnwrapLens<T>
Returns the “default value” for a type. Read more
§impl<T> Hash for UnwrapLens<T>where
T: 'static,
impl<T> Hash for UnwrapLens<T>where
T: 'static,
§impl<T> Lens for UnwrapLens<T>where
T: 'static,
impl<T> Lens for UnwrapLens<T>where
T: 'static,
impl<T> Copy for UnwrapLens<T>
Auto Trait Implementations§
impl<T> Freeze for UnwrapLens<T>
impl<T> RefUnwindSafe for UnwrapLens<T>where
T: RefUnwindSafe,
impl<T> Send for UnwrapLens<T>where
T: Send,
impl<T> Sync for UnwrapLens<T>where
T: Sync,
impl<T> Unpin for UnwrapLens<T>where
T: Unpin,
impl<T> UnwindSafe for UnwrapLens<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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> LensExt for Twhere
T: Lens,
impl<T> LensExt for Twhere
T: Lens,
fn or<Other>(self, other: Other) -> OrLens<Self, Other>
fn and<Other>(self, other: Other) -> AndLens<Self, Other>
§fn then<Other>(self, other: Other) -> Then<Self, Other>
fn then<Other>(self, other: Other) -> Then<Self, Other>
Used to construct a lens to some data contained within some other lensed data. Read more