[][src]Struct kg_tree::Node

pub struct Node { /* fields omitted */ }

Methods

impl Node[src]

pub fn value(&self) -> &Value[src]

pub fn value_mut(&mut self) -> &mut Value[src]

pub fn metadata(&self) -> &Metadata[src]

pub fn metadata_mut(&mut self) -> &mut Metadata[src]

pub fn into_string(self) -> String[src]

pub fn as_string(&self) -> Cow<str>[src]

pub fn as_binary(&self) -> Option<&[u8]>[src]

pub fn as_boolean(&self) -> bool[src]

pub fn as_float(&self) -> f64[src]

pub fn as_integer(&self) -> Option<i64>[src]

pub fn is_null(&self) -> bool[src]

pub fn is_string(&self) -> bool[src]

pub fn is_binary(&self) -> bool[src]

pub fn is_boolean(&self) -> bool[src]

pub fn is_number(&self) -> bool[src]

pub fn is_integer(&self) -> bool[src]

pub fn is_float(&self) -> bool[src]

pub fn is_object(&self) -> bool[src]

pub fn is_array(&self) -> bool[src]

pub fn is_parent(&self) -> bool[src]

pub fn level(&self) -> usize[src]

pub fn index(&self) -> usize[src]

pub fn key(&self) -> &str[src]

pub fn kind(&self) -> Kind[src]

pub fn parent(&self) -> Option<NodeRef>[src]

pub fn file(&self) -> Option<&FileInfo>[src]

pub fn set_file(&mut self, file: Option<&Rc<FileInfo>>)[src]

pub fn file_string(&self) -> String[src]

pub fn file_string_abs(&self) -> String[src]

pub fn file_type(&self) -> String[src]

pub fn file_format(&self) -> String[src]

pub fn file_path(&self) -> String[src]

pub fn file_path_abs(&self) -> String[src]

pub fn dir(&self) -> String[src]

pub fn dir_abs(&self) -> String[src]

pub fn file_path_components<'b>(&'b self) -> impl Iterator<Item = String> + 'b[src]

pub fn file_name(&self) -> String[src]

pub fn file_stem(&self) -> String[src]

pub fn file_ext(&self) -> String[src]

pub fn is_root(&self) -> bool[src]

pub fn children_count(&self) -> Option<usize>[src]

pub fn deep_copy(&self) -> Node[src]

pub fn shrink_to_fit(&mut self)[src]

Trait Implementations

impl Debug for Node[src]

impl Display for Node[src]

impl HeapSizeOf for Node[src]

Auto Trait Implementations

impl Unpin for Node

impl !Sync for Node

impl !Send for Node

impl !UnwindSafe for Node

impl !RefUnwindSafe for Node

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]