pub enum UnknownValue {
String(String),
Integer(i128),
Float(f64),
Bool(bool),
Null,
}Expand description
The typed value of an unrecognized KDL property, preserved for forward-compat.
Mirrors the KDL v2 value space so that the original KDL type is never discarded during a parse→format→parse round-trip.
Variants§
Trait Implementations§
Source§impl Clone for UnknownValue
impl Clone for UnknownValue
Source§fn clone(&self) -> UnknownValue
fn clone(&self) -> UnknownValue
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 UnknownValue
impl Debug for UnknownValue
Source§impl PartialEq for UnknownValue
impl PartialEq for UnknownValue
Source§fn eq(&self, other: &UnknownValue) -> bool
fn eq(&self, other: &UnknownValue) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for UnknownValue
Auto Trait Implementations§
impl Freeze for UnknownValue
impl RefUnwindSafe for UnknownValue
impl Send for UnknownValue
impl Sync for UnknownValue
impl Unpin for UnknownValue
impl UnsafeUnpin for UnknownValue
impl UnwindSafe for UnknownValue
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