pub struct RunTable { /* private fields */ }Expand description
A run as a table: the module’s docs list its columns.
Implementations§
Source§impl RunTable
impl RunTable
Sourcepub fn new(run: &Run) -> Self
pub fn new(run: &Run) -> Self
run as a table. The lists of a draw (stages, motors, devices) take their lengths from the
first sample, as every sample of a run draws the same; the parts’ landings run to the
highest part that landed in any sample.
Sourcepub fn csv(&self) -> Result<String, AnalysisError>
pub fn csv(&self) -> Result<String, AnalysisError>
The table as CSV (RFC 4180): a header of the column names, then one line a sample, lines
ending in CRLF. A number is written in the shortest form that reads back to the same
bits (Rust’s {:?}, which Python’s float and every IEEE-correct reader read exactly);
a missing number is an empty cell. Words are quoted where they hold a comma, a quote or
a line break, a quote doubled.
§Errors
AnalysisError::Domain for a number that isn’t finite.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for RunTable
impl<'de> Deserialize<'de> for RunTable
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 RunTable
Auto Trait Implementations§
impl Freeze for RunTable
impl RefUnwindSafe for RunTable
impl Send for RunTable
impl Sync for RunTable
impl Unpin for RunTable
impl UnsafeUnpin for RunTable
impl UnwindSafe for RunTable
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more