pub struct PixelPair { /* private fields */ }
Implementations§
source§impl PixelPair
impl PixelPair
pub fn new(low: PaletteIdx, high: PaletteIdx) -> Self
pub fn low(&self) -> PaletteIdx
pub fn set_low(&mut self, value: PaletteIdx)
pub fn high(&self) -> PaletteIdx
pub fn set_high(&mut self, value: PaletteIdx)
Trait Implementations§
source§impl<'a> From<&'a PixelPair> for VolatilePixelPair<'a>
impl<'a> From<&'a PixelPair> for VolatilePixelPair<'a>
source§fn from(p: &PixelPair) -> VolatilePixelPair<'_>
fn from(p: &PixelPair) -> VolatilePixelPair<'_>
Converts to this type from the input type.
source§impl<'a> From<&'a mut PixelPair> for VolatilePixelPairMut<'a>
impl<'a> From<&'a mut PixelPair> for VolatilePixelPairMut<'a>
source§fn from(p: &mut PixelPair) -> VolatilePixelPairMut<'_>
fn from(p: &mut PixelPair) -> VolatilePixelPairMut<'_>
Converts to this type from the input type.
source§impl PartialEq for PixelPair
impl PartialEq for PixelPair
impl Copy for PixelPair
impl Pod for PixelPair
impl StructuralPartialEq for PixelPair
Auto Trait Implementations§
impl RefUnwindSafe for PixelPair
impl Send for PixelPair
impl Sync for PixelPair
impl Unpin for PixelPair
impl UnwindSafe for PixelPair
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> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
§type Bits = T
type Bits = T
Self
must have the same layout as the specified Bits
except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern
.source§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self
.