pub struct NonOwning<'a, T> { /* private fields */ }
Expand description
A non-owning value for lifetime 'a
.
Used for FFI functions that accept data by value, but don’t destroy or move
out of it. This is guaranteed to have the same layout as T
.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a, T> RefUnwindSafe for NonOwning<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for NonOwning<'a, T>where
T: Send,
impl<'a, T> Sync for NonOwning<'a, T>where
T: Sync,
impl<'a, T> Unpin for NonOwning<'a, T>where
T: Unpin,
impl<'a, T> UnwindSafe for NonOwning<'a, 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