[][src]Struct spaik::sexpr_parse::Fragment

pub struct Fragment { /* fields omitted */ }

Implementations

impl Fragment[src]

A fragment is a part of a operator/token lookup tree. To get a feel for how it works, use the print_dot method on standard_lisp_tok_tree() with either &mut io::stdout() or a file handle, then run the following command on your generated file:

dot -Tsvg print_dot_output.dot > tree.svg

Then open that svg file in your favorite browser (or Emacs) to see the structure.

pub fn root() -> Fragment[src]

pub fn insert(&mut self, text: &str)[src]

pub fn is_valid(&self) -> bool[src]

pub fn print_dot(&self, stream: &mut dyn Write) -> Result<()>[src]

Print out the token fragment tree in the GraphViz dot 1 format.

Arguments

  • stream : Output.

Trait Implementations

impl Eq for Fragment[src]

impl Hash for Fragment[src]

impl PartialEq<Fragment> for Fragment[src]

impl StructuralEq for Fragment[src]

impl StructuralPartialEq for Fragment[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.