pub enum Specials {
None,
SaturateOnOverflow,
InfinityOnOverflow,
}Expand description
How a layout treats the all-ones exponent and finite overflow.
Variants§
None
No inf or nan encodings; the all-ones exponent is a normal value and overflow saturates to the signed max normal (E3M2, E2M1).
SaturateOnOverflow
IEEE inf and nan encodings are reserved; finite overflow and inf input clamp to the max normal, nan still encodes as nan (E5M2_SATURATING, the GGUF bf8 storage policy).
InfinityOnOverflow
IEEE inf and nan encodings are reserved; overflow rounds to inf (binary32, BF16).
Trait Implementations§
impl Copy for Specials
Source§impl<'de> Deserialize<'de> for Specials
impl<'de> Deserialize<'de> for Specials
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Specials
impl StructuralPartialEq for Specials
Auto Trait Implementations§
impl Freeze for Specials
impl RefUnwindSafe for Specials
impl Send for Specials
impl Sync for Specials
impl Unpin for Specials
impl UnsafeUnpin for Specials
impl UnwindSafe for Specials
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> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.