pub struct TraceItem {
pub object: ObjectId,
pub role: TraceRole,
pub spans: Vec<Vec<[f64; 2]>>,
pub time: bool,
pub notes: Vec<String>,
pub colour: Option<String>,
pub age: Option<[f64; 2]>,
pub feature: Option<String>,
pub sources: Vec<Vec<CutSource>>,
}Expand description
A surface, cut along a section.
Fields§
§object: ObjectIdThe object.
role: TraceRoleWhat it is.
spans: Vec<Vec<[f64; 2]>>The spans, (s, z).
time: boolRead in time, carried by the time factor.
notes: Vec<String>What the cut could not say.
colour: Option<String>The colour the package gives it (SurfaceRead::colour).
age: Option<[f64; 2]>Its age (SurfaceRead::age); absent when the file states none.
feature: Option<String>The feature it is a version of (SurfaceRead::feature).
sources: Vec<Vec<CutSource>>Where each point of each span comes from on the surface
(SurfaceCut::sources), parallel to spans - what a paint of the
front end (View::paints) is laid along. Empty when the reader cannot say.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TraceItem
impl<'de> Deserialize<'de> for TraceItem
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 TraceItem
Auto Trait Implementations§
impl Freeze for TraceItem
impl RefUnwindSafe for TraceItem
impl Send for TraceItem
impl Sync for TraceItem
impl Unpin for TraceItem
impl UnsafeUnpin for TraceItem
impl UnwindSafe for TraceItem
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