pub struct Section {
pub key: SectionKey,
pub trace: Vec<[f64; 2]>,
pub length: f64,
pub marks: Vec<Mark>,
pub band: Vec<[f64; 2]>,
pub items: Vec<Item>,
pub z_range: Option<[f64; 2]>,
}Expand description
One section, drawn in (s, z).
Fields§
§key: SectionKeyWhich section.
trace: Vec<[f64; 2]>Its trace in plan, scene [x, y].
length: f64Its length.
marks: Vec<Mark>Its marks along s: vertices, crossings.
band: Vec<[f64; 2]>The band its corridor keeps, scene [x, y], counter-clockwise, not closed.
items: Vec<Item>What is drawn on it.
z_range: Option<[f64; 2]>The vertical range of what is drawn; None when nothing is.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Section
impl<'de> Deserialize<'de> for Section
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 Section
Auto Trait Implementations§
impl Freeze for Section
impl RefUnwindSafe for Section
impl Send for Section
impl Sync for Section
impl Unpin for Section
impl UnsafeUnpin for Section
impl UnwindSafe for Section
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