Struct peroxide::util::writer::SimpleWriter
source · pub struct SimpleWriter { /* private fields */ }
Expand description
Simple Matrix Writer
Necessary Fields
data: Vec<Matrix>
path: String
Option
header: Vec<String>
round: u8
Implementations
sourceimpl SimpleWriter
impl SimpleWriter
pub fn new() -> SimpleWriter
pub fn insert_header(&mut self, head: Vec<&str>) -> &mut Self
pub fn set_round_level(&mut self, nth: u8) -> &mut Self
pub fn insert_matrix(&mut self, mat: Matrix) -> &mut Self
pub fn insert_vector(&mut self, vec: Vec<f64>) -> &mut Self
pub fn set_path(&mut self, path: &str) -> &mut Self
pub fn write_csv(self)
Trait Implementations
sourceimpl Clone for SimpleWriter
impl Clone for SimpleWriter
sourcefn clone(&self) -> SimpleWriter
fn clone(&self) -> SimpleWriter
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations
impl RefUnwindSafe for SimpleWriter
impl Send for SimpleWriter
impl Sync for SimpleWriter
impl Unpin for SimpleWriter
impl UnwindSafe for SimpleWriter
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more