pub struct ImageInfo { /* private fields */ }
Expand description
Information about an image.
Implementations
sourceimpl ImageInfo
impl ImageInfo
sourcepub fn new(
flags: ImageFlags,
width: usize,
height: usize,
format: PixelFormat
) -> Self
pub fn new(
flags: ImageFlags,
width: usize,
height: usize,
format: PixelFormat
) -> Self
Creates an ImageInfo struct
sourcepub fn flags(&self) -> ImageFlags
pub fn flags(&self) -> ImageFlags
Image flags
sourcepub fn format(&self) -> PixelFormat
pub fn format(&self) -> PixelFormat
Image format
sourcepub fn set_format(&mut self, format: PixelFormat)
pub fn set_format(&mut self, format: PixelFormat)
Set format
Trait Implementations
impl Copy for ImageInfo
impl Eq for ImageInfo
impl StructuralEq for ImageInfo
impl StructuralPartialEq for ImageInfo
Auto Trait Implementations
impl RefUnwindSafe for ImageInfo
impl Send for ImageInfo
impl Sync for ImageInfo
impl Unpin for ImageInfo
impl UnwindSafe for ImageInfo
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more