pub struct Field<Get, GetMut> { /* private fields */ }
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> Send for Field<Get, GetMut>where Get: Send, GetMut: Send,
impl<Get, GetMut> Sync for Field<Get, GetMut>where Get: Sync, GetMut: Sync,
impl<Get, GetMut> Unpin for Field<Get, GetMut>where Get: Unpin, GetMut: Unpin,
impl<Get, GetMut> UnwindSafe for Field<Get, GetMut>where Get: UnwindSafe, GetMut: UnwindSafe,
Blanket Implementations§
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> RoundFrom<T> for T
impl<T> RoundFrom<T> for T
§fn round_from(x: T) -> T
fn round_from(x: T) -> T
Performs the conversion.
§impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
impl<T, U> RoundInto<U> for Twhere U: RoundFrom<T>,
§fn round_into(self) -> U
fn round_into(self) -> U
Performs the conversion.