[][src]Struct gift::block::ColorTableConfig

pub struct ColorTableConfig { /* fields omitted */ }

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]

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]

impl Clone for 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

Blanket Implementations

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]