#[repr(C)]pub struct NSTDImage {
pub image: NSTDImageHandle,
pub raw: *const u8,
pub format: NSTDImageFormat,
pub width: u32,
pub height: u32,
}Expand description
Represents an image.
Fields
image: NSTDImageHandleA raw handle to the image.
raw: *const u8A raw pointer to the image data.
format: NSTDImageFormatThe image format.
width: u32The width of the image in pixels.
height: u32The height of the image in pixels.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for NSTDImage
impl !Send for NSTDImage
impl !Sync for NSTDImage
impl Unpin for NSTDImage
impl UnwindSafe for NSTDImage
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<R, P> ReadPrimitive<R> for P where
R: Read + ReadEndian<P>,
P: Default,
impl<R, P> ReadPrimitive<R> for P where
R: Read + ReadEndian<P>,
P: Default,
sourcefn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as ReadEndian::read_from_little_endian().
sourcefn read_from_big_endian(read: &mut R) -> Result<Self, Error>
fn read_from_big_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as ReadEndian::read_from_big_endian().
sourcefn read_from_native_endian(read: &mut R) -> Result<Self, Error>
fn read_from_native_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as ReadEndian::read_from_native_endian().