#[repr(i32)]pub enum AsdfValueType {
Show 18 variants
Unknown = 0,
Sequence = 1,
Mapping = 2,
Scalar = 3,
String = 4,
Bool = 5,
Null = 6,
Int8 = 7,
Int16 = 8,
Int32 = 9,
Int64 = 10,
Uint8 = 11,
Uint16 = 12,
Uint32 = 13,
Uint64 = 14,
Float = 15,
Double = 16,
Extension = 17,
}Expand description
The value types, mirroring asdf_value_type_t.
Variants§
Unknown = 0
Unknown, typically only after a parse error.
Sequence = 1
A sequence.
Mapping = 2
A mapping.
Scalar = 3
A scalar not yet narrowed.
String = 4
A string.
Bool = 5
A boolean.
Null = 6
A null.
Int8 = 7
Signed 8-bit integer.
Int16 = 8
Signed 16-bit integer.
Int32 = 9
Signed 32-bit integer.
Int64 = 10
Signed 64-bit integer.
Uint8 = 11
Unsigned 8-bit integer.
Uint16 = 12
Unsigned 16-bit integer.
Uint32 = 13
Unsigned 32-bit integer.
Uint64 = 14
Unsigned 64-bit integer.
Float = 15
32-bit float.
Double = 16
64-bit float.
Extension = 17
A registered extension type.
Implementations§
Source§impl AsdfValueType
impl AsdfValueType
Sourcepub fn from_i32(value: i32) -> Option<Self>
pub fn from_i32(value: i32) -> Option<Self>
The value type for a discriminant, or None if it names none.
See AsdfEventType::from_i32 for why C-supplied discriminants are
checked rather than transmuted blind.
Trait Implementations§
Source§impl Clone for AsdfValueType
impl Clone for AsdfValueType
Source§fn clone(&self) -> AsdfValueType
fn clone(&self) -> AsdfValueType
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 AsdfValueType
Source§impl Debug for AsdfValueType
impl Debug for AsdfValueType
impl Eq for AsdfValueType
Source§impl From<ValueType> for AsdfValueType
impl From<ValueType> for AsdfValueType
Source§impl PartialEq for AsdfValueType
impl PartialEq for AsdfValueType
impl StructuralPartialEq for AsdfValueType
Auto Trait Implementations§
impl Freeze for AsdfValueType
impl RefUnwindSafe for AsdfValueType
impl Send for AsdfValueType
impl Sync for AsdfValueType
impl Unpin for AsdfValueType
impl UnsafeUnpin for AsdfValueType
impl UnwindSafe for AsdfValueType
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