pub struct WriteOnly<'s, T: ?Sized + 's>(_, _);
Expand description
Pointer type which can only be written to.
Implementations
sourceimpl<'s, T: ?Sized> WriteOnly<'s, T>
impl<'s, T: ?Sized> WriteOnly<'s, T>
sourcepub fn as_mut_ptr(&mut self) -> *mut T
pub fn as_mut_ptr(&mut self) -> *mut T
Retrieves the pointer allowing it to be manipulated freely. As it points to uninitialized data care must be taken so to not read it before it has been initialized
Auto Trait Implementations
impl<'s, T: ?Sized> RefUnwindSafe for WriteOnly<'s, T>where
T: RefUnwindSafe,
impl<'s, T> !Send for WriteOnly<'s, T>
impl<'s, T> !Sync for WriteOnly<'s, T>
impl<'s, T: ?Sized> Unpin for WriteOnly<'s, T>
impl<'s, T> !UnwindSafe for WriteOnly<'s, T>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more