pub struct ColorTableConfig { /* private fields */ }Expand description
A color table configuration defines the size and ordering of a color table.
Implementations§
Source§impl ColorTableConfig
impl ColorTableConfig
Sourcepub fn new(
existence: ColorTableExistence,
ordering: ColorTableOrdering,
table_len: u16,
) -> Self
pub fn new( existence: ColorTableExistence, ordering: ColorTableOrdering, table_len: u16, ) -> Self
Create a new color table configuration
Sourcepub fn existence(&self) -> ColorTableExistence
pub fn existence(&self) -> ColorTableExistence
Get the existence of a color table
Sourcepub fn ordering(&self) -> ColorTableOrdering
pub fn ordering(&self) -> ColorTableOrdering
Get the ordering of a color table
Sourcepub fn size_bytes(&self) -> usize
pub fn size_bytes(&self) -> usize
Get the size of the color table (in bytes)
Trait Implementations§
Source§impl Clone for ColorTableConfig
impl Clone for ColorTableConfig
Source§fn clone(&self) -> ColorTableConfig
fn clone(&self) -> ColorTableConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ColorTableConfig
Source§impl Debug for ColorTableConfig
impl Debug for ColorTableConfig
Source§impl Default for ColorTableConfig
impl Default for ColorTableConfig
impl Eq for ColorTableConfig
Source§impl PartialEq for ColorTableConfig
impl PartialEq for ColorTableConfig
Source§fn eq(&self, other: &ColorTableConfig) -> bool
fn eq(&self, other: &ColorTableConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ColorTableConfig
Auto Trait Implementations§
impl Freeze for ColorTableConfig
impl RefUnwindSafe for ColorTableConfig
impl Send for ColorTableConfig
impl Sync for ColorTableConfig
impl Unpin for ColorTableConfig
impl UnsafeUnpin for ColorTableConfig
impl UnwindSafe for ColorTableConfig
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