Struct turing_lib::Library 
source · pub struct Library {
    pub name: Cow<'static, str>,
    pub description: Cow<'static, str>,
    pub initial_state: Cow<'static, str>,
    pub final_state: Cow<'static, str>,
    pub used_states: Cow<'static, [Cow<'static, str>]>,
    pub code: Cow<'static, str>,
}Fields§
§name: Cow<'static, str>§description: Cow<'static, str>§initial_state: Cow<'static, str>§final_state: Cow<'static, str>§used_states: Cow<'static, [Cow<'static, str>]>§code: Cow<'static, str>Implementations§
source§impl Library
 
impl Library
pub fn get_instructions( &self ) -> Result<HashMap<(String, bool), TuringInstruction>, CompilerError>
Trait Implementations§
source§impl<'de> Deserialize<'de> for Library
 
impl<'de> Deserialize<'de> for Library
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
    __D: Deserializer<'de>,
 
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl RefUnwindSafe for Library
impl Send for Library
impl Sync for Library
impl Unpin for Library
impl UnwindSafe for Library
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