[−][src]Struct gfx_memory::Writer
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,
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,
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,
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]
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, 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>,