pub struct Unit;
Expand description
A Lens
that always yields ().
This is useful when you wish to have a display only widget, require a type-erased widget, or obtain app data out of band and ignore your input. (E.g sub-windows)
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Unit
impl Send for Unit
impl Sync for Unit
impl Unpin for Unit
impl UnwindSafe for Unit
Blanket Implementations§
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
§impl<A, B, T> LensExt<A, B> for Twhere
T: Lens<A, B>,
A: ?Sized,
B: ?Sized,
impl<A, B, T> LensExt<A, B> for Twhere T: Lens<A, B>, A: ?Sized, B: ?Sized,
§fn then<Other, C>(self, other: Other) -> Then<Self, Other, B>where
Other: Lens<B, C>,
Self: Sized,
C: ?Sized,
fn then<Other, C>(self, other: Other) -> Then<Self, Other, B>where Other: Lens<B, C>, Self: Sized, C: ?Sized,
§fn map<Get, Put, C>(self, get: Get, put: Put) -> Then<Self, Map<Get, Put>, B>where
Get: Fn(&B) -> C,
Put: Fn(&mut B, C),
Self: Sized,
fn map<Get, Put, C>(self, get: Get, put: Put) -> Then<Self, Map<Get, Put>, B>where Get: Fn(&B) -> C, Put: Fn(&mut B, C), Self: Sized,
§fn deref(self) -> Then<Self, Deref, B>where
B: Deref + DerefMut,
Self: Sized,
fn deref(self) -> Then<Self, Deref, B>where B: Deref + DerefMut, Self: Sized,
Invoke a type’s
Deref
impl Read more§fn index<I>(self, index: I) -> Then<Self, Index<I>, B>where
I: Clone,
B: Index<I> + IndexMut<I>,
Self: Sized,
fn index<I>(self, index: I) -> Then<Self, Index<I>, B>where I: Clone, B: Index<I> + IndexMut<I>, Self: Sized,
Access an index in a container Read more
§impl<T> Pointable for T
impl<T> Pointable for T
§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.