pub enum Simple {
String(String),
Bool(bool),
Number(Number),
}Expand description
A scalar as JSON would carry it. XML text that does not fit the
declared primitive stays a Self::String rather than being
coerced.
Variants§
Implementations§
Trait Implementations§
impl StructuralPartialEq for Simple
Auto Trait Implementations§
impl Freeze for Simple
impl RefUnwindSafe for Simple
impl Send for Simple
impl Sync for Simple
impl Unpin for Simple
impl UnwindSafe for Simple
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