Struct druid::lens::Identity [−][src]
pub struct Identity;
Expand description
The identity lens: the lens which does nothing, i.e. exposes exactly the original value.
Useful for starting a lens combinator chain, or passing to lens-based interfaces.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Identity
impl UnwindSafe for Identity
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
impl<T> RoundFrom<T> for T
impl<T> RoundFrom<T> for T
pub fn round_from(x: T) -> T
pub fn round_from(x: T) -> T
Performs the conversion.
pub fn round_into(self) -> U
pub fn round_into(self) -> U
Performs the conversion.
type Output = T
type Output = T
Should always be Self
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more