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> Freeze for NonOwning<'a, T>where
T: Freeze,
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
Source§impl<T> IntoResult<T> for T
impl<T> IntoResult<T> for T
Source§type Error = Infallible
type Error = Infallible
The error type in the returned
Result.Source§fn into_result(self) -> Result<T, <T as IntoResult<T>>::Error>
fn into_result(self) -> Result<T, <T as IntoResult<T>>::Error>
Converts the value into a
Result.