pub struct Variable { /* private fields */ }
Implementations§
Source§impl Variable
impl Variable
pub fn from_core( index: usize, variable: &CoreVariable, program: &CoreProgram, offset: Option<usize>, ) -> SimpleResult<Self>
pub fn to_bytes(&self, assembly: &Assembly) -> SimpleResult<Vec<u8>>
pub fn write( &self, stream: &mut dyn Write, assembly: &Assembly, ) -> SimpleResult<()>
pub fn index(&self) -> usize
pub fn id(&self) -> &str
pub fn typeid(&self) -> &CoreType
pub fn size(&self) -> usize
pub fn offset(&self) -> &Option<usize>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Variable
impl RefUnwindSafe for Variable
impl Send for Variable
impl Sync for Variable
impl Unpin for Variable
impl UnwindSafe for Variable
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