pub struct e3m2(/* private fields */);Expand description
A 6-bit floating point type with 3 exponent bits and 2 mantissa bits.
Implementations§
Trait Implementations§
impl Copy for e3m2
Source§impl<'de> Deserialize<'de> for e3m2
impl<'de> Deserialize<'de> for e3m2
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<e3m2, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<e3m2, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<e3m2> for ManagedVariable
impl From<e3m2> for ManagedVariable
Source§fn from(value: e3m2) -> ManagedVariable
fn from(value: e3m2) -> ManagedVariable
Converts to this type from the input type.
Source§impl IntoRuntime for e3m2
impl IntoRuntime for e3m2
fn __expand_runtime_method(self, _scope: &mut Scope) -> NativeExpand<Self>
fn runtime(self) -> Self
Source§impl NativeAssign for e3m2
impl NativeAssign for e3m2
fn elem_init_mut(scope: &mut Scope, elem: ManagedVariable) -> ManagedVariable
Source§impl PartialOrd for e3m2
impl PartialOrd for e3m2
impl Pod for e3m2
Source§impl RudaPrimitive for e3m2
impl RudaPrimitive for e3m2
Source§fn as_type_native() -> Option<Type>
fn as_type_native() -> Option<Type>
Return the element type to use on GPU
type Scalar = e3m2
type Size = Const<1>
type WithScalar<S: Scalar> = S
fn from_const_value(_value: ConstantValue) -> Self
Source§fn as_type_native_unchecked() -> Type
fn as_type_native_unchecked() -> Type
Native or static element type.
Source§fn size_bits_unchecked() -> usize
fn size_bits_unchecked() -> usize
Only native element types have a size.
fn from_expand_elem(elem: ManagedVariable) -> Self::ExpandType
fn into_lit_unchecked(self) -> Self
fn supported_uses<R: Runtime>(client: &ComputeClient<R>) -> EnumSet<TypeUsage>
fn type_size() -> usize
fn type_size_bits() -> usize
fn packing_factor() -> usize
fn vector_size() -> usize
fn __expand_type_size(scope: &Scope) -> usize
fn __expand_type_size_bits(scope: &Scope) -> usize
fn __expand_packing_factor(scope: &Scope) -> usize
fn __expand_vector_size(scope: &Scope) -> usize
Source§impl RudaType for e3m2
impl RudaType for e3m2
type ExpandType = NativeExpand<e3m2>
impl Scalar for e3m2
Source§impl Serialize for e3m2
impl Serialize for e3m2
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for e3m2
Auto Trait Implementations§
impl Freeze for e3m2
impl RefUnwindSafe for e3m2
impl Send for e3m2
impl Sync for e3m2
impl Unpin for e3m2
impl UnsafeUnpin for e3m2
impl UnwindSafe for e3m2
Blanket Implementations§
impl<T> AnyBitPattern for Twhere
T: Pod,
Source§impl<T> Assign for Twhere
T: RudaPrimitive,
impl<T> Assign for Twhere
T: RudaPrimitive,
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<P> Cast for Pwhere
P: RudaPrimitive,
impl<P> Cast for Pwhere
P: RudaPrimitive,
fn cast_from<From>(_value: From) -> Pwhere
From: RudaPrimitive,
fn __expand_cast_from<From: RudaPrimitive>( scope: &mut Scope, value: NativeExpand<From>, ) -> <Self as RudaType>::ExpandType
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
Source§type Bits = T
type Bits = T
Self must have the same layout as the specified Bits except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern.Source§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self.Source§impl<C> CloneExpand for Cwhere
C: Clone,
impl<C> CloneExpand for Cwhere
C: Clone,
fn __expand_clone_method(&self, _scope: &mut Scope) -> C
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> DefaultExpand for T
impl<T> DefaultExpand for T
fn __expand_default(scope: &mut Scope) -> <T as RudaType>::ExpandType
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<T> NoUninit for Twhere
T: Pod,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<P> Reinterpret for Pwhere
P: RudaPrimitive,
impl<P> Reinterpret for Pwhere
P: RudaPrimitive,
Source§fn reinterpret<From: RudaPrimitive>(value: From) -> Self
fn reinterpret<From: RudaPrimitive>(value: From) -> Self
Reinterpret the bits of another primitive as this primitive without conversion.
Source§fn reinterpret_vectorization<From: RudaPrimitive>() -> usize
fn reinterpret_vectorization<From: RudaPrimitive>() -> usize
Calculates the expected vectorization for the reinterpret target
fn __expand_reinterpret<From: RudaPrimitive>( scope: &mut Scope, value: NativeExpand<From>, ) -> <Self as RudaType>::ExpandType
fn __expand_reinterpret_vectorization<From: RudaPrimitive>( scope: &mut Scope, ) -> usize
Source§impl<P> RudaDebug for Pwhere
P: RudaPrimitive,
impl<P> RudaDebug for Pwhere
P: RudaPrimitive,
Source§fn set_debug_name(&self, scope: &mut Scope, name: &'static str)
fn set_debug_name(&self, scope: &mut Scope, name: &'static str)
Set the debug name of this type’s expansion. Should do nothing for types that don’t appear
at runtime