pub enum FloatSliceFormat {
Java,
Epserde,
Ascii,
Json,
}Expand description
Formats for storing and loading slices of floats.
Variants§
Java
Java-compatible format: a sequence of big-endian floats (32 or 64 bits).
Epserde
A sequence of floats (32 or 64 bits) serialized using ε-serde.
Ascii
ASCII format, one float per line.
Json
A JSON array.
Implementations§
Source§impl FloatSliceFormat
impl FloatSliceFormat
Sourcepub fn store<F>(
&self,
path: impl AsRef<Path>,
values: &[F],
precision: Option<usize>,
) -> Result<()>
pub fn store<F>( &self, path: impl AsRef<Path>, values: &[F], precision: Option<usize>, ) -> Result<()>
Stores a slice of floats in the specified path using the format defined by
self.
If the result is a textual format, that is, ASCII or JSON, precision
will be used to round the float values to the specified number of
decimal digits. If None, zmij formatting will be used.
Trait Implementations§
Source§impl Clone for FloatSliceFormat
impl Clone for FloatSliceFormat
impl Copy for FloatSliceFormat
Source§impl Debug for FloatSliceFormat
impl Debug for FloatSliceFormat
Source§impl Default for FloatSliceFormat
impl Default for FloatSliceFormat
Source§impl ValueEnum for FloatSliceFormat
impl ValueEnum for FloatSliceFormat
Auto Trait Implementations§
impl Freeze for FloatSliceFormat
impl RefUnwindSafe for FloatSliceFormat
impl Send for FloatSliceFormat
impl Sync for FloatSliceFormat
impl Unpin for FloatSliceFormat
impl UnsafeUnpin for FloatSliceFormat
impl UnwindSafe for FloatSliceFormat
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> EitherFullOrEpsCopy<T> for Twhere
T: ?Sized,
impl<T> FullCopyConsistent<T> for Twhere
T: ?Sized,
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