pub struct Inputs {
pub trace: Vec<[f64; 2]>,
pub system: Option<System>,
pub left: f64,
pub right: f64,
pub crosses: Crosses,
pub objects: Vec<Asked>,
pub time_factor: Option<f64>,
}Expand description
What the calculation is made of. Two catalogues built from equal inputs are the same catalogue: this is the cache key, and the SVG’s metadata.
Fields§
§trace: Vec<[f64; 2]>The leading trace, [x, y] in the scene’s system - where it was pointed.
system: Option<System>That system; None for a scene with none (every object then has to be
in its own frame, and an object that names a system is refused).
left: f64The long section’s corridor, left and right of the trace as it was drawn.
right: f64See Inputs::left.
crosses: CrossesThe cross sections, if any.
objects: Vec<Asked>The objects asked for, package by package.
time_factor: Option<f64>The scene’s time scale - metres of the vertical axis per unit of time -
when an object in time is asked for. None: an object in
time is refused by name.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Inputs
impl<'de> Deserialize<'de> for Inputs
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 Inputs
Auto Trait Implementations§
impl Freeze for Inputs
impl RefUnwindSafe for Inputs
impl Send for Inputs
impl Sync for Inputs
impl Unpin for Inputs
impl UnsafeUnpin for Inputs
impl UnwindSafe for Inputs
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