[][src]Struct gfx_memory::Writer

pub struct Writer<'a, 'b, T, B: Backend> {
    pub slice: &'a mut [T],
    // some fields omitted
}

Wrapper structure for a mutable slice with deferred flushing for non-coherent memory.

Fields

slice: &'a mut [T]

Wrapped slice.

Methods

impl<'_, '_, T, B: Backend> Writer<'_, '_, T, B>[src]

pub fn forget(self) -> (*mut T, Option<Segment>)[src]

Dispose of the wrapper and return a bare mapping pointer.

The segment to flush is returned. The user is responsible to flush this segment manually.

Trait Implementations

impl<'a, 'b, T: Debug, B: Debug + Backend> Debug for Writer<'a, 'b, T, B>[src]

impl<'a, 'b, T, B: Backend> Drop for Writer<'a, 'b, T, B>[src]

Auto Trait Implementations

impl<'a, 'b, T, B> RefUnwindSafe for Writer<'a, 'b, T, B> where
    T: RefUnwindSafe,
    <B as Backend>::Device: RefUnwindSafe,
    <B as Backend>::Memory: RefUnwindSafe

impl<'a, 'b, T, B> Send for Writer<'a, 'b, T, B> where
    T: Send,
    <B as Backend>::Device: Sync,
    <B as Backend>::Memory: Sync

impl<'a, 'b, T, B> Sync for Writer<'a, 'b, T, B> where
    T: Sync,
    <B as Backend>::Device: Sync,
    <B as Backend>::Memory: Sync

impl<'a, 'b, T, B> Unpin for Writer<'a, 'b, T, B>

impl<'a, 'b, T, B> !UnwindSafe for Writer<'a, 'b, T, B>

Blanket Implementations

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

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

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

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

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

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.