pub struct TreePath(/* private fields */);
Implementations§
Source§impl TreePath
impl TreePath
pub fn new() -> TreePath
pub fn new_first() -> TreePath
pub fn new_from_indicesv(indices: &[i32]) -> TreePath
pub fn new_from_string(path: &str) -> TreePath
pub fn append_index(&mut self, index_: i32)
pub fn down(&mut self)
pub fn get_depth(&self) -> i32
pub fn get_indices_with_depth(&mut self) -> Vec<i32>
pub fn is_ancestor(&self, descendant: &TreePath) -> bool
pub fn is_descendant(&self, ancestor: &TreePath) -> bool
pub fn next(&mut self)
pub fn prepend_index(&mut self, index_: i32)
pub fn prev(&mut self) -> bool
pub fn up(&mut self) -> bool
Trait Implementations§
Source§impl Ord for TreePath
impl Ord for TreePath
Source§impl PartialOrd for TreePath
impl PartialOrd for TreePath
Source§impl StaticType for TreePath
impl StaticType for TreePath
Source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self
.impl Eq for TreePath
Auto Trait Implementations§
impl Freeze for TreePath
impl RefUnwindSafe for TreePath
impl !Send for TreePath
impl !Sync for TreePath
impl Unpin for TreePath
impl UnwindSafe for TreePath
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