pub struct FBox<T: ?Sized>(/* private fields */);
Expand description
An owning pointer to a foreign-allocated object.
It doesn’t manage its own allocation, rather, it just drops its content in-place,
counting on the Drop
impl of the contained type to call the appropriate foreign
function to properly dispose of the value.
Named FBox
to avoid confusion with the Rust standard library Box
.
F stands for “foreign”.
Trait Implementations§
impl<T: Send> Send for FBox<T>
impl<T: Sync> Sync for FBox<T>
Auto Trait Implementations§
impl<T> Freeze for FBox<T>where
T: ?Sized,
impl<T> RefUnwindSafe for FBox<T>where
T: RefUnwindSafe + ?Sized,
impl<T> Unpin for FBox<T>where
T: ?Sized,
impl<T> UnwindSafe for FBox<T>where
T: RefUnwindSafe + ?Sized,
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