pub enum ApplicationTag {
F32,
F64,
Df64,
}Expand description
Tag for the set the application declares.
§Examples
use tenferro_scalar_consumer_application::ApplicationTag;
assert_ne!(ApplicationTag::F64, ApplicationTag::Df64);Variants§
F32
Standard single precision.
F64
Standard double precision.
Df64
The contribution’s extended-precision scalar, ranked above double precision.
Implementations§
Source§impl ApplicationTag
impl ApplicationTag
Sourcepub const SPECS: &'static [MemberSpec]
pub const SPECS: &'static [MemberSpec]
Promotion facts of every member, in declaration order.
Sourcepub const fn spec(self) -> MemberSpec
pub const fn spec(self) -> MemberSpec
Promotion facts of this member.
§Examples
use tenferro_tensor_core::{MemberKind, DType};
assert_eq!(DType::F64.spec().kind, MemberKind::Float);Trait Implementations§
Source§impl Clone for ApplicationTag
impl Clone for ApplicationTag
Source§fn clone(&self) -> ApplicationTag
fn clone(&self) -> ApplicationTag
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 moreimpl Copy for ApplicationTag
Source§impl Debug for ApplicationTag
impl Debug for ApplicationTag
impl Eq for ApplicationTag
Source§impl Hash for ApplicationTag
impl Hash for ApplicationTag
Source§impl PartialEq for ApplicationTag
impl PartialEq for ApplicationTag
impl StructuralPartialEq for ApplicationTag
Auto Trait Implementations§
impl Freeze for ApplicationTag
impl RefUnwindSafe for ApplicationTag
impl Send for ApplicationTag
impl Sync for ApplicationTag
impl Unpin for ApplicationTag
impl UnsafeUnpin for ApplicationTag
impl UnwindSafe for ApplicationTag
Blanket Implementations§
impl<T> Boilerplate for T
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
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