pub enum ParsedVariable {
Bool(bool),
BoolVec(Vec<bool>),
U32(u32),
U8(u8),
I32(i32),
Register(Register),
ControlRegister(ControlRegister),
Unit(Unit),
ConditionalOperation(Option<ConditionalOperation>),
}Variants§
Bool(bool)
BoolVec(Vec<bool>)
U32(u32)
U8(u8)
I32(i32)
Register(Register)
ControlRegister(ControlRegister)
Unit(Unit)
ConditionalOperation(Option<ConditionalOperation>)
Implementations§
Source§impl ParsedVariable
impl ParsedVariable
pub fn get_bool(&self) -> Result<bool>
pub fn get_bool_vec(&self) -> Result<Vec<bool>>
pub fn get_u32(&self) -> Result<u32>
pub fn get_i32(&self) -> Result<i32>
pub fn get_u8(&self) -> Result<u8>
pub fn get_register(&self) -> Result<Register>
pub fn get_control_register(&self) -> Result<ControlRegister>
pub fn get_unit(&self) -> Result<Unit>
pub fn get_conditional_operation(&self) -> Result<Option<ConditionalOperation>>
pub fn try_get<'a>( hashmap: &'a HashMap<String, Self>, name: &str, ) -> Result<&'a Self>
Trait Implementations§
Source§impl Clone for ParsedVariable
impl Clone for ParsedVariable
Source§fn clone(&self) -> ParsedVariable
fn clone(&self) -> ParsedVariable
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ParsedVariable
impl RefUnwindSafe for ParsedVariable
impl Send for ParsedVariable
impl Sync for ParsedVariable
impl Unpin for ParsedVariable
impl UnsafeUnpin for ParsedVariable
impl UnwindSafe for ParsedVariable
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