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 Freeze for Library
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