pub enum CoreScalarType {
Null,
Boolean,
Integer,
Float,
String,
}Expand description
The five scalar types recognised by the YAML 1.2 core schema.
Returned by ScalarValue::classify_plain, which is the single
source of truth for plain-scalar tag resolution. This is a strict
subset of ScalarType, which additionally covers yaml-edit’s
out-of-band types (Timestamp, Binary, Regex) used when
constructing new values.
Variants§
Null
!!null
Boolean
!!bool
Integer
!!int
Float
!!float
String
!!str (the fallback when no other tag matches)
Trait Implementations§
Source§impl Clone for CoreScalarType
impl Clone for CoreScalarType
Source§fn clone(&self) -> CoreScalarType
fn clone(&self) -> CoreScalarType
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 CoreScalarType
Source§impl Debug for CoreScalarType
impl Debug for CoreScalarType
impl Eq for CoreScalarType
Source§impl From<CoreScalarType> for ScalarType
impl From<CoreScalarType> for ScalarType
Source§fn from(t: CoreScalarType) -> Self
fn from(t: CoreScalarType) -> Self
Converts to this type from the input type.
Source§impl Hash for CoreScalarType
impl Hash for CoreScalarType
Source§impl PartialEq for CoreScalarType
impl PartialEq for CoreScalarType
impl StructuralPartialEq for CoreScalarType
Auto Trait Implementations§
impl Freeze for CoreScalarType
impl RefUnwindSafe for CoreScalarType
impl Send for CoreScalarType
impl Sync for CoreScalarType
impl Unpin for CoreScalarType
impl UnsafeUnpin for CoreScalarType
impl UnwindSafe for CoreScalarType
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