Trait guion::util::traitcast::Traitcast [−][src]
Trait to secure Traitcasting, generally implemented by macro
- Always implemented on
dyn Widget<E>
T
is the destinationdyn Trait
to which should be traitcastedDestTypeID
must be the same type asT
, but with ’static lifetimes. Used to retrieve TypeID
Associated Types
type DestTypeID: ?Sized + 'static
[src]
Provided methods
unsafe fn _traitcast_ref<'s>(
senf: &'s dyn Widget<E>
) -> Result<&'s T, GuionError<E>>
[src]
senf: &'s dyn Widget<E>
) -> Result<&'s T, GuionError<E>>
unsafe fn _try_traitcast_ref<'s>(senf: &'s dyn Widget<E>) -> Result<&'s T, ()>
[src]
Implementors
impl<'w, E> Traitcast<dyn Validation<E> + 'w, E> for dyn Widget<E> + 'w where
E: Env,
[src]
E: Env,
type DestTypeID = dyn Validation<E> + 'static
impl<'w, E> Traitcast<dyn ICheckBox<E> + 'w, E> for dyn Widget<E> + 'w where
E: Env,
[src]
E: Env,
type DestTypeID = dyn ICheckBox<E> + 'static
impl<'w, E> Traitcast<dyn ITextBox<E> + 'w, E> for dyn Widget<E> + 'w where
E: Env,
[src]
E: Env,
type DestTypeID = dyn ITextBox<E> + 'static
impl<'w, E> Traitcast<dyn Caption<E> + 'w, E> for dyn Widget<E> + 'w where
E: Env,
[src]
E: Env,
type DestTypeID = dyn Caption<E> + 'static
impl<'w, T, E> Traitcast<dyn AtomState<E, T> + 'w, E> for dyn Widget<E> + 'w where
E: Env,
T: 'static,
[src]
E: Env,
T: 'static,