Struct linked_syntax_tree::Element
source · pub struct Element<T> {
pub item: T,
pub depth: usize,
}
Expand description
An element in a SyntaxTree
with a known depth.
Fields§
§item: T
The data within the node.
depth: usize
The depth of the node.
Trait Implementations§
source§impl<T: PartialEq> PartialEq<Element<T>> for Element<T>
impl<T: PartialEq> PartialEq<Element<T>> for Element<T>
impl<T: Eq> Eq for Element<T>
impl<T> StructuralEq for Element<T>
impl<T> StructuralPartialEq for Element<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for Element<T>where T: RefUnwindSafe,
impl<T> Send for Element<T>where T: Send,
impl<T> Sync for Element<T>where T: Sync,
impl<T> Unpin for Element<T>where T: Unpin,
impl<T> UnwindSafe for Element<T>where T: UnwindSafe,
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