pub enum NodeContent {
String(String),
Int(usize),
Float(f32),
Bool(bool),
List(Vec<NodeContent>),
Json(Json),
Null,
}
Variants§
Implementations§
Source§impl NodeContent
impl NodeContent
pub fn toString(&self) -> Option<String>
pub fn toUsize(&self) -> Option<usize>
pub fn toBool(&self) -> Option<bool>
pub fn toFloat(&self) -> Option<f32>
pub fn toJson(&self) -> Option<Json>
pub fn toList(&self) -> Option<Vec<NodeContent>>
pub fn toNull(&self) -> Option<Node>
Trait Implementations§
Source§impl Clone for NodeContent
impl Clone for NodeContent
Source§fn clone(&self) -> NodeContent
fn clone(&self) -> NodeContent
Returns a copy of the value. Read more
1.0.0 · 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 NodeContent
impl Debug for NodeContent
Source§impl PartialEq for NodeContent
impl PartialEq for NodeContent
impl StructuralPartialEq for NodeContent
Auto Trait Implementations§
impl Freeze for NodeContent
impl RefUnwindSafe for NodeContent
impl Send for NodeContent
impl Sync for NodeContent
impl Unpin for NodeContent
impl UnwindSafe for NodeContent
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