Struct druid::lens::Field [−][src]
pub struct Field<Get, GetMut> { /* fields omitted */ }
Expand description
Lens accessing a member of some type using accessor functions
See also the lens
macro.
let lens = druid::lens::Field::new(|x: &Vec<u32>| &x[42], |x| &mut x[42]);
Implementations
Trait Implementations
Auto Trait Implementations
impl<Get, GetMut> RefUnwindSafe for Field<Get, GetMut> where
Get: RefUnwindSafe,
GetMut: RefUnwindSafe,
impl<Get, GetMut> UnwindSafe for Field<Get, GetMut> where
Get: UnwindSafe,
GetMut: UnwindSafe,
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