pub enum FloatVectorFormat {
Java,
Epserde,
Ascii,
Json,
}Expand description
How to store vectors of floats.
Variants§
Java
Java-compatible format: a sequence of big-endian floats (32 or 64 bits).
Epserde
A slice of floats (32 or 64 bits) serialized using ε-serde.
Ascii
ASCII format, one float per line.
Json
A JSON Array.
Implementations§
Source§impl FloatVectorFormat
impl FloatVectorFormat
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 float values in the specified path using the format defined by
self.
If the result is a textual format, i.e., ASCII or JSON, precision
will be used to truncate the float values to the specified number of
decimal digits.
Trait Implementations§
Source§impl Clone for FloatVectorFormat
impl Clone for FloatVectorFormat
Source§fn clone(&self) -> FloatVectorFormat
fn clone(&self) -> FloatVectorFormat
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FloatVectorFormat
impl Debug for FloatVectorFormat
Source§impl ValueEnum for FloatVectorFormat
impl ValueEnum for FloatVectorFormat
impl Copy for FloatVectorFormat
Auto Trait Implementations§
impl Freeze for FloatVectorFormat
impl RefUnwindSafe for FloatVectorFormat
impl Send for FloatVectorFormat
impl Sync for FloatVectorFormat
impl Unpin for FloatVectorFormat
impl UnwindSafe for FloatVectorFormat
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, U> CastableInto<U> for Twhere
U: CastableFrom<T>,
impl<T, U> CastableInto<U> for Twhere
U: CastableFrom<T>,
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> DowncastableFrom<T> for T
impl<T> DowncastableFrom<T> for T
Source§fn downcast_from(value: T) -> T
fn downcast_from(value: T) -> T
Truncate the current UnsignedInt to a possibly smaller size
Source§impl<T, U> DowncastableInto<U> for Twhere
U: DowncastableFrom<T>,
impl<T, U> DowncastableInto<U> for Twhere
U: DowncastableFrom<T>,
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> UpcastableFrom<T> for T
impl<T> UpcastableFrom<T> for T
Source§fn upcast_from(value: T) -> T
fn upcast_from(value: T) -> T
Extend the current UnsignedInt to a possibly bigger size.