Enum rsjson::NodeContent
source · 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
source§fn eq(&self, other: &NodeContent) -> bool
fn eq(&self, other: &NodeContent) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.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