pub enum ResolvedScalar {
Null,
Bool(bool),
Number(YamlNumber),
NonFinite(NonFiniteFloat),
String,
}Expand description
YAML 1.2 core-schema interpretation of a scalar.
Variants§
Null
YAML null.
Bool(bool)
YAML boolean.
Number(YamlNumber)
A finite integer or float.
NonFinite(NonFiniteFloat)
A YAML infinity or NaN spelling.
String
A string scalar.
Trait Implementations§
Source§impl Clone for ResolvedScalar
impl Clone for ResolvedScalar
Source§fn clone(&self) -> ResolvedScalar
fn clone(&self) -> ResolvedScalar
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 ResolvedScalar
impl Debug for ResolvedScalar
impl Eq for ResolvedScalar
Source§impl PartialEq for ResolvedScalar
impl PartialEq for ResolvedScalar
impl StructuralPartialEq for ResolvedScalar
Auto Trait Implementations§
impl Freeze for ResolvedScalar
impl RefUnwindSafe for ResolvedScalar
impl Send for ResolvedScalar
impl Sync for ResolvedScalar
impl Unpin for ResolvedScalar
impl UnsafeUnpin for ResolvedScalar
impl UnwindSafe for ResolvedScalar
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