[−][src]Struct gift::block::ColorTableConfig
A color table configuration defines the size and ordering of a color table.
Methods
impl ColorTableConfig
[src]
pub fn new(
existence: ColorTableExistence,
ordering: ColorTableOrdering,
table_len: u16
) -> Self
[src]
existence: ColorTableExistence,
ordering: ColorTableOrdering,
table_len: u16
) -> Self
Create a new color table configuration
pub fn existence(&self) -> ColorTableExistence
[src]
Get the existence of a color table
pub fn ordering(&self) -> ColorTableOrdering
[src]
Get the ordering of a color table
pub fn len(&self) -> usize
[src]
Get the length of a color table (number of entries)
pub fn size_bytes(&self) -> usize
[src]
Get the size of the color table (in bytes)
Trait Implementations
impl PartialEq<ColorTableConfig> for ColorTableConfig
[src]
fn eq(&self, other: &ColorTableConfig) -> bool
[src]
fn ne(&self, other: &ColorTableConfig) -> bool
[src]
impl Clone for ColorTableConfig
[src]
fn clone(&self) -> ColorTableConfig
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Default for ColorTableConfig
[src]
impl Eq for ColorTableConfig
[src]
impl Copy for ColorTableConfig
[src]
impl Debug for ColorTableConfig
[src]
Auto Trait Implementations
impl Send for ColorTableConfig
impl Sync for ColorTableConfig
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,