pub struct ManagedVecRef<'a, T>where
T: ManagedVecItem,{ /* private fields */ }
Implementations§
Source§impl<T> ManagedVecRef<'_, T>where
T: ManagedVecItem,
impl<T> ManagedVecRef<'_, T>where
T: ManagedVecItem,
Sourcepub unsafe fn new(item: T) -> ManagedVecRef<'_, T>
pub unsafe fn new(item: T) -> ManagedVecRef<'_, T>
Creates a new ManagedVecRef instance.
§Safety
The ManagedVecRef object might not drop its content, effectively leading to a leak.
Trait Implementations§
Source§impl<T> Borrow<T> for ManagedVecRef<'_, T>where
T: ManagedVecItem,
impl<T> Borrow<T> for ManagedVecRef<'_, T>where
T: ManagedVecItem,
Source§impl<T> Deref for ManagedVecRef<'_, T>where
T: ManagedVecItem,
impl<T> Deref for ManagedVecRef<'_, T>where
T: ManagedVecItem,
Source§impl<T> Drop for ManagedVecRef<'_, T>where
T: ManagedVecItem,
impl<T> Drop for ManagedVecRef<'_, T>where
T: ManagedVecItem,
Auto Trait Implementations§
impl<'a, T> Freeze for ManagedVecRef<'a, T>where
T: Freeze,
impl<'a, T> RefUnwindSafe for ManagedVecRef<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for ManagedVecRef<'a, T>
impl<'a, T> Sync for ManagedVecRef<'a, T>where
T: Sync,
impl<'a, T> Unpin for ManagedVecRef<'a, T>where
T: Unpin,
impl<'a, T> UnwindSafe for ManagedVecRef<'a, T>where
T: UnwindSafe + RefUnwindSafe,
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> InterpretableFrom<T> for T
impl<T> InterpretableFrom<T> for T
fn interpret_from(from: T, _context: &InterpreterContext) -> T
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more