pub struct DevTreeIndexNode<'a, 'i: 'a, 'dt: 'i> { /* private fields */ }
Implementations§
Source§impl<'a, 'i: 'a, 'dt: 'i> DevTreeIndexNode<'a, 'i, 'dt>
impl<'a, 'i: 'a, 'dt: 'i> DevTreeIndexNode<'a, 'i, 'dt>
pub fn index(&self) -> &'a DevTreeIndex<'i, 'dt>
pub fn name(&self) -> Result<&'dt str, DevTreeError>
pub fn siblings(&self) -> DevTreeIndexNodeSiblingIter<'a, 'i, 'dt> ⓘ
pub fn props(&self) -> DevTreeIndexNodePropIter<'a, 'i, 'dt> ⓘ
pub fn parent(&self) -> Option<Self>
pub fn children(&self) -> DevTreeIndexNodeSiblingIter<'a, 'i, 'dt> ⓘ
Sourcepub fn is_parent_of(&self, other: &Self) -> bool
pub fn is_parent_of(&self, other: &Self) -> bool
Returns true if self
is a parent of the other DevTreeIndexNode
Sourcepub fn is_sibling_of(&self, other: &Self) -> bool
pub fn is_sibling_of(&self, other: &Self) -> bool
Returns true if self
is a sibling of the other DevTreeIndexNode
Trait Implementations§
Source§impl<'a, 'i: 'a, 'dt: 'i> Clone for DevTreeIndexNode<'a, 'i, 'dt>
impl<'a, 'i: 'a, 'dt: 'i> Clone for DevTreeIndexNode<'a, 'i, 'dt>
Source§fn clone(&self) -> DevTreeIndexNode<'a, 'i, 'dt>
fn clone(&self) -> DevTreeIndexNode<'a, 'i, 'dt>
Returns a duplicate 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<'a, 'i: 'a, 'dt: 'i> PartialEq for DevTreeIndexNode<'a, 'i, 'dt>
impl<'a, 'i: 'a, 'dt: 'i> PartialEq for DevTreeIndexNode<'a, 'i, 'dt>
Auto Trait Implementations§
impl<'a, 'i, 'dt> Freeze for DevTreeIndexNode<'a, 'i, 'dt>
impl<'a, 'i, 'dt> RefUnwindSafe for DevTreeIndexNode<'a, 'i, 'dt>
impl<'a, 'i, 'dt> !Send for DevTreeIndexNode<'a, 'i, 'dt>
impl<'a, 'i, 'dt> !Sync for DevTreeIndexNode<'a, 'i, 'dt>
impl<'a, 'i, 'dt> Unpin for DevTreeIndexNode<'a, 'i, 'dt>
impl<'a, 'i, 'dt> UnwindSafe for DevTreeIndexNode<'a, 'i, 'dt>
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