Struct read_fonts::tables::colr::ColorStop
source · #[repr(C, packed(1))]pub struct ColorStop {
pub stop_offset: BigEndian<F2Dot14>,
pub palette_index: BigEndian<u16>,
pub alpha: BigEndian<F2Dot14>,
}
Expand description
ColorStop record
Fields§
§stop_offset: BigEndian<F2Dot14>
Position on a color line.
palette_index: BigEndian<u16>
Index for a CPAL palette entry.
alpha: BigEndian<F2Dot14>
Alpha value.
Implementations§
Trait Implementations§
source§impl FixedSize for ColorStop
impl FixedSize for ColorStop
source§const RAW_BYTE_LEN: usize = 6usize
const RAW_BYTE_LEN: usize = 6usize
The raw size of this type, in bytes. Read more
source§impl Ord for ColorStop
impl Ord for ColorStop
source§impl PartialEq for ColorStop
impl PartialEq for ColorStop
source§impl PartialOrd for ColorStop
impl PartialOrd for ColorStop
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl<'a> SomeRecord<'a> for ColorStop
impl<'a> SomeRecord<'a> for ColorStop
fn traverse(self, data: FontData<'a>) -> RecordResolver<'a>
impl AnyBitPattern for ColorStop
impl Copy for ColorStop
impl Eq for ColorStop
impl StructuralPartialEq for ColorStop
Auto Trait Implementations§
impl Freeze for ColorStop
impl RefUnwindSafe for ColorStop
impl Send for ColorStop
impl Sync for ColorStop
impl Unpin for ColorStop
impl UnwindSafe for ColorStop
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
.