pub enum ScalarTypeDef {
Show 27 variants
Byte,
Char,
Short,
Int,
Long,
Half,
Float,
Double,
ComplexHalf,
ComplexFloat,
ComplexDouble,
Bool,
QInt8,
QUInt8,
QInt32,
BFloat16,
QUInt4x2,
QUInt2x4,
Bits1x8,
Bits2x4,
Bits4x2,
Bits8,
Bits16,
Float8_e5m2,
Float8_e4m3fn,
Float8_e5m2fnuz,
Float8_e4m3fnuz,
}Expand description
Remote serde implementation for ScalarType
Variants§
Byte
Char
Short
Int
Long
Half
Float
Double
ComplexHalf
ComplexFloat
ComplexDouble
Bool
QInt8
QUInt8
QInt32
BFloat16
QUInt4x2
QUInt2x4
Bits1x8
Bits2x4
Bits4x2
Bits8
Bits16
Float8_e5m2
Float8_e4m3fn
Float8_e5m2fnuz
Float8_e4m3fnuz
Implementations§
Source§impl ScalarTypeDef
impl ScalarTypeDef
pub fn serialize<__S>(
__self: &ScalarType,
__serializer: __S,
) -> Result<__S::Ok, __S::Error>where
__S: Serializer,
Source§impl<'de> ScalarTypeDef
impl<'de> ScalarTypeDef
pub fn deserialize<__D>(__deserializer: __D) -> Result<ScalarType, __D::Error>where
__D: Deserializer<'de>,
Auto Trait Implementations§
impl Freeze for ScalarTypeDef
impl RefUnwindSafe for ScalarTypeDef
impl Send for ScalarTypeDef
impl Sync for ScalarTypeDef
impl Unpin for ScalarTypeDef
impl UnwindSafe for ScalarTypeDef
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> 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