[][src]Struct ludus::ports::PixelBuffer

pub struct PixelBuffer(_);

Represents a buffer of pixels the PPU writes to.

The pixels can be read as a slice of u32 values in ARGB format, in row order.

The default value for the pixel buffer is completely transparent.

This struct is somewhat large, so it should be boxed when included in another struct to avoid blowing up the stack.

Trait Implementations

impl AsRef<[u32]> for PixelBuffer[src]

fn as_ref(&self) -> &[u32][src]

This will return the pixels row by row, in ARGB (big endian) format.

impl Default for PixelBuffer[src]

fn default() -> Self[src]

This returns a completely transparent buffer of pixels.

Auto Trait Implementations

impl Send for PixelBuffer

impl Sync for PixelBuffer

Blanket Implementations

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

impl<T> From<T> for 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.

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

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

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