pub struct CSemiBox<'a, D>where
D: DisposeRef + 'a + ?Sized,{ /* private fields */ }
Expand description
A wrapper for pointers made by C that are now partially owned in Rust.
This is necessary to allow owned and borrowed representations of C types to be represented by the same type as they are in C with little overhead
Implementations§
Trait Implementations§
Source§impl<'a, D> From<*mut <D as DisposeRef>::RefTo> for CSemiBox<'a, D>where
D: DisposeRef + 'a + ?Sized,
impl<'a, D> From<*mut <D as DisposeRef>::RefTo> for CSemiBox<'a, D>where
D: DisposeRef + 'a + ?Sized,
Auto Trait Implementations§
impl<'a, D> Freeze for CSemiBox<'a, D>where
D: ?Sized,
impl<'a, D> RefUnwindSafe for CSemiBox<'a, D>
impl<'a, D> !Send for CSemiBox<'a, D>
impl<'a, D> !Sync for CSemiBox<'a, D>
impl<'a, D> Unpin for CSemiBox<'a, D>where
D: ?Sized,
impl<'a, D> UnwindSafe for CSemiBox<'a, D>
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