struct GAMMA_LUT {
__private_field: (),
}
Fields§
§__private_field: ()
Methods from Deref<Target = GammaLut>§
pub fn table_count(&self) -> usize
pub fn get_table(&self, color: u8) -> &[u8; 256]
pub fn preblend(&self, pixels: &mut [u8], color: ColorU)
pub fn preblend_scaled(&self, pixels: &mut [u8], color: ColorU, percent: u8)
pub fn preblend_grayscale(&self, pixels: &mut [u8], color: ColorU)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GAMMA_LUT
impl RefUnwindSafe for GAMMA_LUT
impl Send for GAMMA_LUT
impl Sync for GAMMA_LUT
impl Unpin for GAMMA_LUT
impl UnwindSafe for GAMMA_LUT
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> 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