[−][src]Struct sunrise_libuser::zero_box::ZeroBox
A wrapper around a Box that can initialize itself directly on the heap.
Fields
owned_box: Box<T>
The box we secretely wrap.
Implementations
impl<T> ZeroBox<T>
[src]
pub fn new(x: T) -> ZeroBox<T>
[src]
Regular Box initialisation.
pub fn new_zeroed() -> ZeroBox<T> where
T: ZeroInitialized,
[src]
T: ZeroInitialized,
Allocate a ZeroBox directly on the heap, and zero it.
This function does not cause any stack-to-heap copy.
Trait Implementations
impl<T> AsMut<T> for ZeroBox<T>
[src]
impl<T> AsRef<T> for ZeroBox<T>
[src]
impl<T: Debug> Debug for ZeroBox<T>
[src]
impl<T> Deref for ZeroBox<T>
[src]
impl<T> DerefMut for ZeroBox<T>
[src]
Auto Trait Implementations
impl<T> RefUnwindSafe for ZeroBox<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Send for ZeroBox<T> where
T: Send,
T: Send,
impl<T> Sync for ZeroBox<T> where
T: Sync,
T: Sync,
impl<T> Unpin for ZeroBox<T>
impl<T> UnwindSafe for ZeroBox<T> where
T: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> SizedIPCBuffer for T
[src]
fn size(&Self) -> usize
[src]
fn is_cool(usize, usize) -> bool
[src]
unsafe fn from_raw_parts<'a>(usize, usize) -> &'a T
[src]
unsafe fn from_raw_parts_mut<'a>(usize, usize) -> &'a mut T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,