pub struct Attached<'a, O>(pub O, pub PhantomData<&'a ()>);
Tuple Fields§
§0: O
§1: PhantomData<&'a ()>
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a, O> RefUnwindSafe for Attached<'a, O>where
O: RefUnwindSafe,
impl<'a, O> Send for Attached<'a, O>where
O: Send,
impl<'a, O> Sync for Attached<'a, O>where
O: Sync,
impl<'a, O> Unpin for Attached<'a, O>where
O: Unpin,
impl<'a, O> UnwindSafe for Attached<'a, O>where
O: UnwindSafe,
Blanket Implementations§
§impl<U> As for U
impl<U> As for U
§fn as_<T>(self) -> Twhere
T: CastFrom<U>,
fn as_<T>(self) -> Twhere
T: CastFrom<U>,
Casts
self
to type T
. The semantics of numeric casting with the as
operator are followed, so <T as As>::as_::<U>
can be used in the same way as T as U
for numeric conversions. Read moresource§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