pub struct As<T> { /* private fields */ }Expand description
An AddLifetime helper that passes T by value.
Implementations§
Trait Implementations§
Source§impl<T> AddLifetime for As<T>where
T: 'static,
impl<T> AddLifetime for As<T>where
T: 'static,
impl<T> Copy for As<T>
Auto Trait Implementations§
impl<T> Freeze for As<T>
impl<T> RefUnwindSafe for As<T>where
T: RefUnwindSafe,
impl<T> Send for As<T>where
T: Send,
impl<T> Sync for As<T>where
T: Sync,
impl<T> Unpin for As<T>where
T: Unpin,
impl<T> UnsafeUnpin for As<T>
impl<T> UnwindSafe for As<T>where
T: UnwindSafe,
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