[][src]Struct scdlang_smcat::Machine

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

Transpiler Scdlang → State Machine Cat (JSON).

Examples

let smcat = Machine::new();

smcat.configure().with_err_path("test.scl");
parser.parse("A -> B")?;

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

Methods

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
[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.

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

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

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