pub struct LayerDowncaster<S, E> { /* private fields */ }
Expand description
A convenience type for getting access to TimingLayer
through a Dispatch
.
Implementations§
Source§impl<S, E> Downcaster<S, E>
impl<S, E> Downcaster<S, E>
Sourcepub fn downcast<'a>(&self, d: &'a Dispatch) -> Option<&'a TimingLayer<S, E>>
pub fn downcast<'a>(&self, d: &'a Dispatch) -> Option<&'a TimingLayer<S, E>>
Retrieve a reference to this ident’s original TimingLayer
.
This method returns None
if the given Dispatch
is not holding a layer of the same
type as this ident was created from.
Trait Implementations§
Source§impl<S, E> Clone for Downcaster<S, E>
impl<S, E> Clone for Downcaster<S, E>
impl<S: Copy, E: Copy> Copy for Downcaster<S, E>
Auto Trait Implementations§
impl<S, E> Freeze for Downcaster<S, E>
impl<S, E> RefUnwindSafe for Downcaster<S, E>
impl<S, E> Send for Downcaster<S, E>
impl<S, E> Sync for Downcaster<S, E>
impl<S, E> Unpin for Downcaster<S, E>
impl<S, E> UnwindSafe for Downcaster<S, E>
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