pub struct Tree<B> { /* private fields */ }Implementations§
source§impl Tree<Branch>
impl Tree<Branch>
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<_>>();source§impl Tree<WBranch<Box<dyn Marshaler>>>
impl Tree<WBranch<Box<dyn Marshaler>>>
pub fn new<S>(name: S) -> Self
pub fn add_callback<F>(&mut self, f: Box<F>)where
F: FnMut(StateCallBack) + 'static,
pub fn add_streamer(&mut self, si: StreamerInfo)
pub fn new_branch<T, S>( &mut self, name: S, provider: impl Iterator<Item = T> + 'static )
pub fn write(&mut self, file: &mut RootFile) -> Result<(), Error>
Trait Implementations§
Auto Trait Implementations§
impl<B> Freeze for Tree<B>
impl<B> !RefUnwindSafe for Tree<B>
impl<B> !Send for Tree<B>
impl<B> !Sync for Tree<B>
impl<B> Unpin for Tree<B>where
B: Unpin,
impl<B> !UnwindSafe for Tree<B>
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