pub struct Sector {
pub sector_id: u32,
pub name: Option<String>,
pub material_index: Option<u32>,
pub color_rgba: Option<[u8; 4]>,
pub timing: Timing,
}Expand description
A META.sectors entry: one non-zero sector’s identity and base timing.
The entry carries only what differs from META’s own values: every timing
field it leaves out is inherited from META’s, field by field, and a sector
with no entry at all - sector 0, the primary one, always - resolves from META
alone ([spec/14-layer-timing.md] section 8). A sector carries no material
until its entry names one.
Fields§
§sector_id: u32Sector identifier. 0 is reserved for the implicit primary sector, so an
entry carries >= 1.
name: Option<String>Display name.
material_index: Option<u32>Index into META.materials. Absent means no material.
color_rgba: Option<[u8; 4]>Display hint overriding the material’s color for this sector.
timing: TimingBase timing for this sector; absent fields inherit from META.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Sector
impl<'de> Deserialize<'de> for Sector
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Sector
Auto Trait Implementations§
impl Freeze for Sector
impl RefUnwindSafe for Sector
impl Send for Sector
impl Sync for Sector
impl Unpin for Sector
impl UnsafeUnpin for Sector
impl UnwindSafe for Sector
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