pub struct AlternativeClutSegment {
pub page_id: u16,
pub clut_id: u8,
pub clut_version_number: u8,
pub reserved: u8,
pub clut_parameters: ClutParameters,
pub entries: Vec<AlternativeClutEntry>,
}Expand description
Alternative CLUT Segment.
Fields§
§page_id: u16The page_id from the segment header.
clut_id: u8CLUT family identifier.
clut_version_number: u8CLUT version number (modulo 16).
reserved: u8Reserved bits in body byte 1 (bits [3:0]).
clut_parameters: ClutParametersCLUT parameters.
entries: Vec<AlternativeClutEntry>CLUT entries.
Trait Implementations§
Source§impl Clone for AlternativeClutSegment
impl Clone for AlternativeClutSegment
Source§impl Debug for AlternativeClutSegment
impl Debug for AlternativeClutSegment
impl Eq for AlternativeClutSegment
Source§impl<'a> From<AlternativeClutSegment> for AnySegment<'a>
impl<'a> From<AlternativeClutSegment> for AnySegment<'a>
Source§fn from(s: AlternativeClutSegment) -> Self
fn from(s: AlternativeClutSegment) -> Self
Converts to this type from the input type.
Source§impl<'a> Parse<'a> for AlternativeClutSegment
impl<'a> Parse<'a> for AlternativeClutSegment
Source§impl PartialEq for AlternativeClutSegment
impl PartialEq for AlternativeClutSegment
Source§impl SegmentDef<'_> for AlternativeClutSegment
impl SegmentDef<'_> for AlternativeClutSegment
Source§impl Serialize for AlternativeClutSegment
Available on crate feature serde only.
impl Serialize for AlternativeClutSegment
Available on crate feature
serde only.Source§impl Serialize for AlternativeClutSegment
impl Serialize for AlternativeClutSegment
Source§type Error = Error
type Error = Error
The error type this implementer returns (usually the same as the
corresponding
Parse impl, but need not be).Source§fn serialized_len(&self) -> usize
fn serialized_len(&self) -> usize
Number of bytes
serialize_into will write.Source§fn serialize_into(&self, buf: &mut [u8]) -> Result<usize, Self::Error>
fn serialize_into(&self, buf: &mut [u8]) -> Result<usize, Self::Error>
Write the serialised form into
buf. Returns the number of bytes
written (always equal to serialized_len()).Source§fn try_to_bytes(&self) -> Result<Vec<u8>, Self::Error>
fn try_to_bytes(&self) -> Result<Vec<u8>, Self::Error>
Allocate a
Vec and serialize into it, returning the serializer’s error instead of
panicking. This is the only
allocate-and-serialize entry point: there is deliberately no panicking
to_bytes (hand-built values, or values assembled from damaged wire data,
can violate a wire constraint, so the error must reach the caller).impl StructuralPartialEq for AlternativeClutSegment
Auto Trait Implementations§
impl Freeze for AlternativeClutSegment
impl RefUnwindSafe for AlternativeClutSegment
impl Send for AlternativeClutSegment
impl Sync for AlternativeClutSegment
impl Unpin for AlternativeClutSegment
impl UnsafeUnpin for AlternativeClutSegment
impl UnwindSafe for AlternativeClutSegment
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