pub struct RegionCompositionSegment {Show 16 fields
pub page_id: u16,
pub region_id: u8,
pub region_version_number: u8,
pub region_fill_flag: bool,
pub reserved_byte1: u8,
pub region_width: u16,
pub region_height: u16,
pub region_level_of_compatibility: RegionLevelOfCompatibility,
pub region_depth: RegionDepth,
pub reserved_byte6: u8,
pub clut_id: u8,
pub region_8bit_pixel_code: u8,
pub region_4bit_pixel_code: u8,
pub region_2bit_pixel_code: u8,
pub reserved_byte9: u8,
pub objects: Vec<RegionObjectEntry>,
}Expand description
Region Composition Segment.
Fields§
§page_id: u16The page_id (from generic segment header).
region_id: u8Region identifier.
region_version_number: u8Region version number (modulo 16).
region_fill_flag: boolFill flag.
reserved_byte1: u8Reserved bits in body byte 1 (bits [2:0]).
region_width: u16Region width in pixels.
region_height: u16Region height in pixels.
region_level_of_compatibility: RegionLevelOfCompatibilityMinimum CLUT type required.
region_depth: RegionDepthIntended pixel depth.
reserved_byte6: u8Reserved bits in body byte 6 (bits [1:0]).
clut_id: u8CLUT family identifier.
region_8bit_pixel_code: u8Background colour for 8-bit CLUT.
region_4bit_pixel_code: u8Background colour for 4-bit CLUT.
region_2bit_pixel_code: u8Background colour for 2-bit CLUT.
reserved_byte9: u8Reserved bits in body byte 9 (bits [1:0]).
objects: Vec<RegionObjectEntry>Object entries.
Trait Implementations§
Source§impl Clone for RegionCompositionSegment
impl Clone for RegionCompositionSegment
Source§fn clone(&self) -> RegionCompositionSegment
fn clone(&self) -> RegionCompositionSegment
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RegionCompositionSegment
impl Debug for RegionCompositionSegment
impl Eq for RegionCompositionSegment
Source§impl<'a> From<RegionCompositionSegment> for AnySegment<'a>
impl<'a> From<RegionCompositionSegment> for AnySegment<'a>
Source§fn from(s: RegionCompositionSegment) -> Self
fn from(s: RegionCompositionSegment) -> Self
Converts to this type from the input type.
Source§impl<'a> Parse<'a> for RegionCompositionSegment
impl<'a> Parse<'a> for RegionCompositionSegment
Source§impl PartialEq for RegionCompositionSegment
impl PartialEq for RegionCompositionSegment
Source§impl SegmentDef<'_> for RegionCompositionSegment
impl SegmentDef<'_> for RegionCompositionSegment
Source§impl Serialize for RegionCompositionSegment
impl Serialize for RegionCompositionSegment
Source§impl Serialize for RegionCompositionSegment
impl Serialize for RegionCompositionSegment
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.impl StructuralPartialEq for RegionCompositionSegment
Auto Trait Implementations§
impl Freeze for RegionCompositionSegment
impl RefUnwindSafe for RegionCompositionSegment
impl Send for RegionCompositionSegment
impl Sync for RegionCompositionSegment
impl Unpin for RegionCompositionSegment
impl UnsafeUnpin for RegionCompositionSegment
impl UnwindSafe for RegionCompositionSegment
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