pub struct ColorCache { /* private fields */ }Expand description
Color cache for palette mode.
Stores recently used colors to improve entropy coding efficiency.
Implementations§
Source§impl ColorCache
impl ColorCache
Sourcepub fn build_from_neighbors(&mut self, top: &[u16], left: &[u16])
pub fn build_from_neighbors(&mut self, top: &[u16], left: &[u16])
Build cache from neighbor samples.
Trait Implementations§
Source§impl Clone for ColorCache
impl Clone for ColorCache
Source§fn clone(&self) -> ColorCache
fn clone(&self) -> ColorCache
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 moreSource§impl Debug for ColorCache
impl Debug for ColorCache
Auto Trait Implementations§
impl Freeze for ColorCache
impl RefUnwindSafe for ColorCache
impl Send for ColorCache
impl Sync for ColorCache
impl Unpin for ColorCache
impl UnsafeUnpin for ColorCache
impl UnwindSafe for ColorCache
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