Struct gluon_vm::gc::WriteOnly
[−]
[src]
pub struct WriteOnly<'s, T: ?Sized + 's>(_, _);
Pointer type which can only be written to.
Methods
impl<'s, T: ?Sized> WriteOnly<'s, T>
[src]
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
impl<'s, T> WriteOnly<'s, T>
[src]
fn write(self, t: T) -> &'s mut T
Writes a value to the pointer and returns a pointer to the now initialized value.