pub enum ApplicationSet {
F32(TypedTensor<f32, DynRank, Host>),
F64(TypedTensor<f64, DynRank, Host>),
Df64(TypedTensor<Df64, DynRank, Host>),
}Expand description
Value enum for the set the application declares.
§Examples
use tenferro_df64_proof::Df64;
use tenferro_scalar_consumer_application::{ApplicationSet, ApplicationTag};
use tenferro_tensor::{DynRank, Host, ScalarSet, TypedTensor};
let value = ApplicationSet::Df64(
TypedTensor::<_, DynRank, Host>::from_host_vec_col_major(vec![1], vec![Df64::from_f64(2.0)])?,
);
assert_eq!(value.tag(), ApplicationTag::Df64);Variants§
F32(TypedTensor<f32, DynRank, Host>)
Standard single precision.
F64(TypedTensor<f64, DynRank, Host>)
Standard double precision.
Df64(TypedTensor<Df64, DynRank, Host>)
The contribution’s extended-precision scalar, ranked above double precision.
Trait Implementations§
Source§impl Clone for ApplicationSet
impl Clone for ApplicationSet
Source§fn clone(&self) -> ApplicationSet
fn clone(&self) -> ApplicationSet
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 ApplicationSet
impl Debug for ApplicationSet
Source§impl ScalarSet for ApplicationSet
impl ScalarSet for ApplicationSet
Source§type Tag = ApplicationTag
type Tag = ApplicationTag
Tag identifying one member of this set.
Auto Trait Implementations§
impl !RefUnwindSafe for ApplicationSet
impl !UnwindSafe for ApplicationSet
impl Freeze for ApplicationSet
impl Send for ApplicationSet
impl Sync for ApplicationSet
impl Unpin for ApplicationSet
impl UnsafeUnpin for ApplicationSet
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