#[repr(u8)]pub enum PackedArrayEnum {
Integer8 = 0,
Integer16 = 1,
Integer32 = 2,
Integer64 = 3,
Real32 = 34,
Real64 = 35,
ComplexReal32 = 51,
ComplexReal64 = 52,
}Expand description
WXF element-type tag for PackedArray. Same wire bytes as NumericArrayEnum
but restricted to the packed-compatible variants (no unsigned integers).
Variants§
Integer8 = 0
Integer16 = 1
Integer32 = 2
Integer64 = 3
Real32 = 34
Real64 = 35
ComplexReal32 = 51
ComplexReal64 = 52
Implementations§
Trait Implementations§
Source§impl ArrayElement<PackedArrayEnum> for i8
impl ArrayElement<PackedArrayEnum> for i8
Source§const TAG: PackedArrayEnum = PackedArrayEnum::Integer8
const TAG: PackedArrayEnum = PackedArrayEnum::Integer8
The element-type tag for
Self under this array kind.Source§impl ArrayElement<PackedArrayEnum> for i16
impl ArrayElement<PackedArrayEnum> for i16
Source§const TAG: PackedArrayEnum = PackedArrayEnum::Integer16
const TAG: PackedArrayEnum = PackedArrayEnum::Integer16
The element-type tag for
Self under this array kind.Source§impl ArrayElement<PackedArrayEnum> for i32
impl ArrayElement<PackedArrayEnum> for i32
Source§const TAG: PackedArrayEnum = PackedArrayEnum::Integer32
const TAG: PackedArrayEnum = PackedArrayEnum::Integer32
The element-type tag for
Self under this array kind.Source§impl ArrayElement<PackedArrayEnum> for i64
impl ArrayElement<PackedArrayEnum> for i64
Source§const TAG: PackedArrayEnum = PackedArrayEnum::Integer64
const TAG: PackedArrayEnum = PackedArrayEnum::Integer64
The element-type tag for
Self under this array kind.Source§impl ArrayElement<PackedArrayEnum> for f32
impl ArrayElement<PackedArrayEnum> for f32
Source§const TAG: PackedArrayEnum = PackedArrayEnum::Real32
const TAG: PackedArrayEnum = PackedArrayEnum::Real32
The element-type tag for
Self under this array kind.Source§impl ArrayElement<PackedArrayEnum> for f64
impl ArrayElement<PackedArrayEnum> for f64
Source§const TAG: PackedArrayEnum = PackedArrayEnum::Real64
const TAG: PackedArrayEnum = PackedArrayEnum::Real64
The element-type tag for
Self under this array kind.Source§impl ArrayElement<PackedArrayEnum> for Complex32
impl ArrayElement<PackedArrayEnum> for Complex32
Source§const TAG: PackedArrayEnum = PackedArrayEnum::ComplexReal32
const TAG: PackedArrayEnum = PackedArrayEnum::ComplexReal32
The element-type tag for
Self under this array kind.Source§impl ArrayElement<PackedArrayEnum> for Complex64
impl ArrayElement<PackedArrayEnum> for Complex64
Source§const TAG: PackedArrayEnum = PackedArrayEnum::ComplexReal64
const TAG: PackedArrayEnum = PackedArrayEnum::ComplexReal64
The element-type tag for
Self under this array kind.Source§impl Clone for PackedArrayEnum
impl Clone for PackedArrayEnum
Source§fn clone(&self) -> PackedArrayEnum
fn clone(&self) -> PackedArrayEnum
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 PackedArrayEnum
Source§impl Debug for PackedArrayEnum
impl Debug for PackedArrayEnum
impl Eq for PackedArrayEnum
Source§impl From<PackedArrayEnum> for NumericArrayEnum
impl From<PackedArrayEnum> for NumericArrayEnum
Source§fn from(p: PackedArrayEnum) -> NumericArrayEnum
fn from(p: PackedArrayEnum) -> NumericArrayEnum
Converts to this type from the input type.
Source§impl Hash for PackedArrayEnum
impl Hash for PackedArrayEnum
Source§impl Ord for PackedArrayEnum
impl Ord for PackedArrayEnum
Source§fn cmp(&self, other: &PackedArrayEnum) -> Ordering
fn cmp(&self, other: &PackedArrayEnum) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for PackedArrayEnum
impl PartialEq for PackedArrayEnum
Source§fn eq(&self, other: &PackedArrayEnum) -> bool
fn eq(&self, other: &PackedArrayEnum) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for PackedArrayEnum
impl PartialOrd for PackedArrayEnum
impl StructuralPartialEq for PackedArrayEnum
Source§impl TryFrom<NumericArrayEnum> for PackedArrayEnum
impl TryFrom<NumericArrayEnum> for PackedArrayEnum
Source§impl TryFrom<u8> for PackedArrayEnum
impl TryFrom<u8> for PackedArrayEnum
Source§type Error = TryFromPrimitiveError<PackedArrayEnum>
type Error = TryFromPrimitiveError<PackedArrayEnum>
The type returned in the event of a conversion error.
Source§fn try_from(
number: u8,
) -> Result<PackedArrayEnum, TryFromPrimitiveError<PackedArrayEnum>>
fn try_from( number: u8, ) -> Result<PackedArrayEnum, TryFromPrimitiveError<PackedArrayEnum>>
Performs the conversion.
Source§impl TryFromPrimitive for PackedArrayEnum
impl TryFromPrimitive for PackedArrayEnum
const NAME: &'static str = "PackedArrayEnum"
type Primitive = u8
type Error = TryFromPrimitiveError<PackedArrayEnum>
fn try_from_primitive( number: <PackedArrayEnum as TryFromPrimitive>::Primitive, ) -> Result<PackedArrayEnum, TryFromPrimitiveError<PackedArrayEnum>>
Auto Trait Implementations§
impl Freeze for PackedArrayEnum
impl RefUnwindSafe for PackedArrayEnum
impl Send for PackedArrayEnum
impl Sync for PackedArrayEnum
impl Unpin for PackedArrayEnum
impl UnsafeUnpin for PackedArrayEnum
impl UnwindSafe for PackedArrayEnum
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