#[non_exhaustive]pub enum BuiltinType {
Show 13 variants
U8,
I8,
U16,
I16,
U32,
I32,
U64,
I64,
Usize,
Isize,
F32,
F64,
Base64,
}Expand description
Known type identifier described by the KDL specification
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
U8
u8: 8-bit unsigned integer type
I8
i8: 8-bit signed integer type
U16
u16: 16-bit unsigned integer type
I16
i16: 16-bit signed integer type
U32
u32: 32-bit unsigned integer type
I32
i32: 32-bit signed integer type
U64
u64: 64-bit unsigned integer type
I64
i64: 64-bit signed integer type
Usize
usize: platform-dependent unsigned integer type
Isize
isize: platform-dependent signed integer type
F32
f32: 32-bit floating point number
F64
f64: 64-bit floating point number
Base64
base64 denotes binary bytes type encoded using base64 encoding
Implementations§
Trait Implementations§
Source§impl Clone for BuiltinType
impl Clone for BuiltinType
Source§fn clone(&self) -> BuiltinType
fn clone(&self) -> BuiltinType
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 moreSource§impl Debug for BuiltinType
impl Debug for BuiltinType
Source§impl FromStr for BuiltinType
impl FromStr for BuiltinType
Source§impl Into<TypeName> for BuiltinType
impl Into<TypeName> for BuiltinType
Source§impl PartialEq for BuiltinType
impl PartialEq for BuiltinType
Source§fn eq(&self, other: &BuiltinType) -> bool
fn eq(&self, other: &BuiltinType) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for BuiltinType
impl StructuralPartialEq for BuiltinType
Auto Trait Implementations§
impl Freeze for BuiltinType
impl RefUnwindSafe for BuiltinType
impl Send for BuiltinType
impl Sync for BuiltinType
impl Unpin for BuiltinType
impl UnsafeUnpin for BuiltinType
impl UnwindSafe for BuiltinType
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