pub struct MutSlice2<'a, T>(/* private fields */);Expand description
A mutable rectangular view to a region of a Buf2, a Slice2,
or in general any &[T] slice of memory.
Implementations§
Trait Implementations§
Source§impl<T> AsMutSlice2<T> for MutSlice2<'_, T>
impl<T> AsMutSlice2<T> for MutSlice2<'_, T>
Source§fn as_mut_slice2(&mut self) -> MutSlice2<'_, T>
fn as_mut_slice2(&mut self) -> MutSlice2<'_, T>
Returns a mutably borrowed
MutSlice2 view of Self.Auto Trait Implementations§
impl<'a, T> Freeze for MutSlice2<'a, T>
impl<'a, T> RefUnwindSafe for MutSlice2<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for MutSlice2<'a, T>where
T: Send,
impl<'a, T> Sync for MutSlice2<'a, T>where
T: Sync,
impl<'a, T> Unpin for MutSlice2<'a, T>where
T: Unpin,
impl<'a, T> !UnwindSafe for MutSlice2<'a, T>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<Buf> Target for Bufwhere
Buf: AsMutSlice2<u32>,
impl<Buf> Target for Bufwhere
Buf: AsMutSlice2<u32>,
Source§fn rasterize<V, Fs>(
&mut self,
sl: Scanline<V>,
fs: &Fs,
ctx: &Context,
) -> Throughputwhere
V: Vary,
Fs: FragmentShader<V>,
fn rasterize<V, Fs>(
&mut self,
sl: Scanline<V>,
fs: &Fs,
ctx: &Context,
) -> Throughputwhere
V: Vary,
Fs: FragmentShader<V>,
Rasterizes scanline into this u32 color buffer.
Does no z-buffering.