pub enum ExtendedSet {
F64(TypedTensor<f64, DynRank, Host>),
Df64(TypedTensor<Df64, DynRank, Host>),
}Expand description
Value enum for the external extended-precision set.
§Examples
use tenferro_df64_proof::{Df64, ExtendedSet, ExtendedTag};
use tenferro_tensor::{DynRank, Host, ScalarSet, TypedTensor};
let value = ExtendedSet::Df64(
TypedTensor::<_, DynRank, Host>::from_host_vec_col_major(vec![1], vec![Df64::from_f64(2.0)])?,
);
assert_eq!(value.tag(), ExtendedTag::Df64);Variants§
F64(TypedTensor<f64, DynRank, Host>)
Standard double precision.
Df64(TypedTensor<Df64, DynRank, Host>)
The external two-component scalar, ranked above double precision.
Trait Implementations§
Source§impl Clone for ExtendedSet
impl Clone for ExtendedSet
Source§fn clone(&self) -> ExtendedSet
fn clone(&self) -> ExtendedSet
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ExtendedSet
impl Debug for ExtendedSet
Source§impl ScalarSet for ExtendedSet
impl ScalarSet for ExtendedSet
Source§type Tag = ExtendedTag
type Tag = ExtendedTag
Tag identifying one member of this set.
Auto Trait Implementations§
impl !RefUnwindSafe for ExtendedSet
impl !UnwindSafe for ExtendedSet
impl Freeze for ExtendedSet
impl Send for ExtendedSet
impl Sync for ExtendedSet
impl Unpin for ExtendedSet
impl UnsafeUnpin for ExtendedSet
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, U> Imply<T> for U
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