[][src]Struct scdlang_smcat::Machine

pub struct Machine<'a> { /* fields omitted */ }

Transpiler Scdlang → State Machine Cat (JSON).


let smcat = Machine::new();

parser.parse("A -> B")?;

println!("{}", parser.to_string());


impl<'_> Machine<'_>[src]

pub fn new() -> Self[src]

Create new StateMachine. Use this over Machine::default()

Trait Implementations

impl<'_> Drop for Machine<'_>[src]

impl<'a> Default for Machine<'a>[src]

impl<'_> Display for Machine<'_>[src]

impl<'a> Serialize for Machine<'a>[src]

impl<'a> Parser<'a> for Machine<'a>[src]

fn flush_cache<'e>(&'t self) -> Result<(), Box<dyn Error + 'e>>[src]

Completely clear the caches which also deallocate the memory.

fn clean_cache<'e>(&'t self) -> Result<(), Box<dyn Error + 'e>>[src]

Clear the caches while still retain the allocated memory.

Auto Trait Implementations

impl<'a> Send for Machine<'a>

impl<'a> Unpin for Machine<'a>

impl<'a> Sync for Machine<'a>

impl<'a> UnwindSafe for Machine<'a>

impl<'a> RefUnwindSafe for Machine<'a>

Blanket Implementations

impl<T> ToString for T where
    T: Display + ?Sized

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

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized

impl<T> Borrow<T> for T where
    T: ?Sized

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