pub struct Node<T> { /* private fields */ }
Implementations§
Source§impl<T> Node<T>
impl<T> Node<T>
pub fn new<U: Into<String>, V: Into<SomeDataHandler<T>>>( name: U, handler: V, ) -> Node<T>
pub fn name(&self) -> &str
pub fn set_next(&mut self, next: NodeRef<T>)
pub fn set_prev(&mut self, prev: NodeRef<T>)
pub fn process_data(&mut self, data: T)
pub fn visit(&mut self, visitor: &mut dyn NodeVisitor<T>)
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Node<T>
impl<T> !RefUnwindSafe for Node<T>
impl<T> Send for Node<T>
impl<T> !Sync for Node<T>
impl<T> Unpin for Node<T>
impl<T> !UnwindSafe for Node<T>
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