pub struct LogicalScreenDescriptor {
pub width: u16,
pub height: u16,
pub has_global_color_table: bool,
pub color_resolution: u8,
pub sort_flag: bool,
pub global_color_table_size: u8,
pub background_color_index: u8,
pub pixel_aspect_ratio: u8,
}Expand description
Logical Screen Descriptor.
Fields§
§width: u16Canvas width in pixels.
height: u16Canvas height in pixels.
has_global_color_table: boolGlobal color table flag.
color_resolution: u8Color resolution (bits per color minus 1).
sort_flag: boolSort flag.
global_color_table_size: u8Size of global color table (log2(size) - 1).
background_color_index: u8Background color index.
pixel_aspect_ratio: u8Pixel aspect ratio.
Trait Implementations§
Source§impl Clone for LogicalScreenDescriptor
impl Clone for LogicalScreenDescriptor
Source§fn clone(&self) -> LogicalScreenDescriptor
fn clone(&self) -> LogicalScreenDescriptor
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for LogicalScreenDescriptor
impl RefUnwindSafe for LogicalScreenDescriptor
impl Send for LogicalScreenDescriptor
impl Sync for LogicalScreenDescriptor
impl Unpin for LogicalScreenDescriptor
impl UnsafeUnpin for LogicalScreenDescriptor
impl UnwindSafe for LogicalScreenDescriptor
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