Struct vizia_core::binding::StaticLens
source · pub struct StaticLens<T: 'static> { /* private fields */ }
Implementations§
source§impl<T> StaticLens<T>
impl<T> StaticLens<T>
pub fn new(data: &'static T) -> Self
Trait Implementations§
source§impl<T> Clone for StaticLens<T>
impl<T> Clone for StaticLens<T>
source§impl<T> Debug for StaticLens<T>
impl<T> Debug for StaticLens<T>
source§impl<T> Hash for StaticLens<T>
impl<T> Hash for StaticLens<T>
source§impl<T> Lens for StaticLens<T>
impl<T> Lens for StaticLens<T>
impl<T> Copy for StaticLens<T>
Auto Trait Implementations§
impl<T> Freeze for StaticLens<T>
impl<T> RefUnwindSafe for StaticLens<T>where
T: RefUnwindSafe,
impl<T> Send for StaticLens<T>where
T: Sync,
impl<T> Sync for StaticLens<T>where
T: Sync,
impl<T> Unpin for StaticLens<T>
impl<T> UnwindSafe for StaticLens<T>where
T: RefUnwindSafe,
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>
source§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>
source§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