Struct oxyroot::ReaderTree
source · pub struct ReaderTree { /* private fields */ }Expand description
Implementations§
source§impl ReaderTree
impl ReaderTree
sourcepub fn branches_r(&self) -> Vec<&Branch>
pub fn branches_r(&self) -> Vec<&Branch>
Get all (recursively) branches in this tree
pub fn user_info(&self) -> Option<&ReaderList>
sourcepub fn show(&self)
pub fn show(&self)
Display branches in this tree
Provide name, C++ type and a possible Rust interpretation.
Example:
ⓘ
name | typename | interpretation
-------------------------------+-------------------------------+-------------------------------
string | string | String
vector_vector_int32 | vector<vector<int32_t>> | Vec<Vec<i32>>
vector_int32 | vector<int32_t> | Vec<i32>
vector_string | vector<string> | Vec<String>
three | char* | StringIn this example, last branch can be read with:
ⓘ
let three = tree
.branch("three")
.unwrap()
.as_iter::<String>()
.collect::<Vec<_>>();Trait Implementations§
source§impl Default for ReaderTree
impl Default for ReaderTree
source§fn default() -> ReaderTree
fn default() -> ReaderTree
Returns the “default value” for a type. Read more
source§impl Named for ReaderTree
impl Named for ReaderTree
Auto Trait Implementations§
impl Freeze for ReaderTree
impl !RefUnwindSafe for ReaderTree
impl !Send for ReaderTree
impl !Sync for ReaderTree
impl Unpin for ReaderTree
impl !UnwindSafe for ReaderTree
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
source§impl<'a, T> ReadFromTree<'a> for Twhere
T: UnmarshalerInto<Item = T> + 'a,
impl<'a, T> ReadFromTree<'a> for Twhere
T: UnmarshalerInto<Item = T> + 'a,
source§fn from_branch_tree_sliced(
tree: &'a ReaderTree,
branch_name: BranchName
) -> Result<impl Iterator<Item = ReadFromTreeResult<T>>, Error>
fn from_branch_tree_sliced( tree: &'a ReaderTree, branch_name: BranchName ) -> Result<impl Iterator<Item = ReadFromTreeResult<T>>, Error>
this implementation exists to satisfy the compiler whcih need a concrete return type.