pub struct ImageInfo {
pub machine_code: String,
pub user_name: String,
pub memo: String,
pub x: u16,
pub y: u16,
pub width: u16,
pub height: u16,
pub num_colors: u16,
pub is_200_line_mode: bool,
}Expand description
Represents metadata of an image.
Fields§
§machine_code: StringThe machine name (max 4 characters). e.g. PC98, PC88, ESEQ, X68K, MSX2
user_name: StringThe author’s name
memo: StringThe author’s memo
x: u16The x position
y: u16The y position
width: u16The width of the image, in pixels
height: u16The height of the image, in pixels
num_colors: u16The number of colors, 16 or 256
is_200_line_mode: boolThe rectangular pixel aspect ratio flag
Trait Implementations§
impl StructuralPartialEq for ImageInfo
Auto Trait Implementations§
impl Freeze for ImageInfo
impl RefUnwindSafe for ImageInfo
impl Send for ImageInfo
impl Sync for ImageInfo
impl Unpin for ImageInfo
impl UnwindSafe for ImageInfo
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more