struct VisitorGraph<'a> {
cursor: TreeCursor<'a>,
dot: String,
source: &'a Rope,
root_name: Option<String>,
}
Fields§
§cursor: TreeCursor<'a>
§dot: String
§source: &'a Rope
§root_name: Option<String>
Implementations§
source§impl<'a> VisitorGraph<'a>
impl<'a> VisitorGraph<'a>
fn add_feature(&mut self, feature: GraphNode)
fn add_feature_link(&mut self, feature: GraphNode, parent: GraphNode)
fn add_legend(&mut self)
fn begin_constraints(&mut self)
fn add_constraint(&mut self, span: Range<usize>)
fn end_constraints(&mut self)
fn end(&mut self)
fn header(&self) -> Option<Node<'a>>
Trait Implementations§
source§impl<'a> Clone for VisitorGraph<'a>
impl<'a> Clone for VisitorGraph<'a>
source§fn clone(&self) -> VisitorGraph<'a>
fn clone(&self) -> VisitorGraph<'a>
Returns a copy 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<'b> SymbolSlice for VisitorGraph<'b>
impl<'b> SymbolSlice for VisitorGraph<'b>
source§impl<'a> Visitor<'a> for VisitorGraph<'a>
impl<'a> Visitor<'a> for VisitorGraph<'a>
fn cursor(&self) -> &TreeCursor<'a>
fn cursor_mut(&mut self) -> &mut TreeCursor<'a>
fn source(&self) -> &Rope
fn push_err_raw(&mut self, _: ErrorInfo)
fn skip_extra(&mut self) -> bool
source§fn goto_first_child(&mut self) -> bool
fn goto_first_child(&mut self) -> bool
try to go down
source§fn goto_named(&mut self) -> bool
fn goto_named(&mut self) -> bool
try to goto a named node on the current layer
fn goto_next_sibling(&mut self) -> bool
fn goto_parent(&mut self)
fn kind(&self) -> &str
fn node(&self) -> Node<'a>
fn child_by_name(&self, name: &str) -> Option<Node<'a>>
source§fn goto_next_kind(&mut self, kind: &str) -> bool
fn goto_next_kind(&mut self, kind: &str) -> bool
try to go forward at least once until we find a node of kind
source§fn goto_field(&mut self, name: &str) -> bool
fn goto_field(&mut self, name: &str) -> bool
try to go forward until we find a node as a field name
source§fn goto_kind(&mut self, name: &str) -> bool
fn goto_kind(&mut self, name: &str) -> bool
try to go forward until we find a node of kind name
fn push_error<T: Into<String>>(&mut self, w: u32, error: T)
fn push_error_with_type<T: Into<String>>( &mut self, w: u32, error: T, error_type: ErrorType, )
fn push_error_node<T: Into<String>>(&mut self, node: Node<'_>, w: u32, error: T)
Auto Trait Implementations§
impl<'a> Freeze for VisitorGraph<'a>
impl<'a> RefUnwindSafe for VisitorGraph<'a>
impl<'a> !Send for VisitorGraph<'a>
impl<'a> !Sync for VisitorGraph<'a>
impl<'a> Unpin for VisitorGraph<'a>
impl<'a> UnwindSafe for VisitorGraph<'a>
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more