pub struct Link { /* private fields */ }
Expand description
§Linkable object
Implementations§
Source§impl Link
impl Link
pub fn append(&mut self, link: Link) -> Result<(), Error>
pub fn push(&mut self, op: Opcode) -> Result<(), Error>
pub fn transform_to_data(&mut self, col: &Column) -> Result<(), Error>
pub fn read_data(&mut self) -> Result<Val, Error>
pub fn restore_data(&mut self, addr: Address)
pub fn get(&self, addr: Address) -> Option<&Opcode>
pub fn last(&self) -> Option<&Opcode>
pub fn drain<R>(&mut self, range: R) -> Drain<'_, Opcode>where
R: RangeBounds<usize>,
pub fn is_empty(&self) -> bool
pub fn len(&self) -> usize
pub fn clear(&mut self)
pub fn next_symbol(&mut self) -> Symbol
pub fn push_def_fn( &mut self, col: Column, ident: Rc<str>, vars: Vec<Rc<str>>, expr_ops: Link, ) -> Result<(), Error>
pub fn push_for(&mut self, col: Column) -> Result<(), Error>
pub fn push_gosub( &mut self, col: Column, line_number: LineNumber, ) -> Result<(), Error>
pub fn push_return_val( &mut self, col: Column, symbol: Symbol, ) -> Result<(), Error>
pub fn push_goto( &mut self, col: Column, line_number: LineNumber, ) -> Result<(), Error>
pub fn push_ifnot(&mut self, col: Column, sym: Symbol) -> Result<(), Error>
pub fn push_jump(&mut self, col: Column, sym: Symbol) -> Result<(), Error>
pub fn push_restore( &mut self, col: Column, line_number: LineNumber, ) -> Result<(), Error>
pub fn push_run( &mut self, col: Column, line_number: LineNumber, ) -> Result<(), Error>
pub fn push_symbol(&mut self, sym: Symbol)
pub fn push_wend(&mut self, col: Column) -> Result<(), Error>
pub fn push_while(&mut self, col: Column, expr: Link) -> Result<(), Error>
pub fn set_start_of_direct(&mut self, op_addr: Address)
pub fn line_number_for(&self, op_addr: Address) -> LineNumber
pub fn link(&mut self) -> Vec<Error>
Trait Implementations§
Source§impl TryFrom<&Link> for LineNumber
impl TryFrom<&Link> for LineNumber
Auto Trait Implementations§
impl Freeze for Link
impl RefUnwindSafe for Link
impl !Send for Link
impl !Sync for Link
impl Unpin for Link
impl UnwindSafe for Link
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