[][src]Struct gluon_vm::gc::WriteOnly

pub struct WriteOnly<'s, T: ?Sized + 's>(_, _);

Pointer type which can only be written to.

Implementations

impl<'s, T: ?Sized> WriteOnly<'s, T>[src]

pub unsafe fn new(t: *mut T) -> WriteOnly<'s, T>[src]

Unsafe as the lifetime must not be longer than the liftime of t

pub fn as_mut_ptr(&mut self) -> *mut T[src]

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]

pub fn write(self, t: T) -> &'s mut T[src]

Writes a value to the pointer and returns a pointer to the now initialized value.

impl<'s, T: Copy> WriteOnly<'s, [T]>[src]

pub fn write_slice(self, s: &[T]) -> &'s mut [T][src]

impl<'s> WriteOnly<'s, str>[src]

pub fn write_str(self, s: &str) -> &'s mut str[src]

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Any for T where
    T: Any

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<'_, T> Captures<'_> for T[src]

impl<Choices> CoproductSubsetter<CNil, HNil> for Choices[src]

type Remainder = Choices

impl<T> Downcast for T where
    T: Any
[src]

impl<T> From<T> for T[src]

impl<D, T> FromPtr<D> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U, I> LiftInto<U, I> for T where
    U: LiftFrom<T, I>, 
[src]

impl<Source> Sculptor<HNil, HNil> for Source[src]

type Remainder = Source

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.