[−][src]Struct scdlang_smcat::Machine
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]
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]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<'a> Parser<'a> for Machine<'a>
[src]
fn configure(&mut self) -> &mut dyn Builder<'a>
[src]
fn parse(&mut self, source: &str) -> Result<(), Box<dyn Error>>
[src]
fn insert_parse(&mut self, source: &str) -> Result<(), Box<dyn Error>>
[src]
fn try_parse(source: &str, builder: Scdlang<'a>) -> Result<Self, Box<dyn Error>>
[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]
T: Display + ?Sized,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,