Struct dyon::ast::Item
[−]
[src]
pub struct Item { pub name: Arc<String>, pub stack_id: Cell<Option<usize>>, pub static_stack_id: Cell<Option<usize>>, pub current: bool, pub try: bool, pub ids: Vec<Id>, pub try_ids: Vec<usize>, pub source_range: Range, }
Fields
name: Arc<String>
stack_id: Cell<Option<usize>>
static_stack_id: Cell<Option<usize>>
current: bool
try: bool
ids: Vec<Id>
try_ids: Vec<usize>
source_range: Range
Methods
impl Item
[src]
fn from_variable(name: Arc<String>, source_range: Range) -> Item
fn trunc(&self, n: usize) -> Item
Truncates item extra to a given length.
fn from_meta_data(file: &Arc<String>,
source: &Arc<String>,
convert: Convert,
ignored: &mut Vec<Range>)
-> Result<(Range, Item), ()>
source: &Arc<String>,
convert: Convert,
ignored: &mut Vec<Range>)
-> Result<(Range, Item), ()>
fn resolve_locals(&self,
relative: usize,
stack: &mut Vec<Option<Arc<String>>>,
closure_stack: &mut Vec<usize>,
module: &Module)
relative: usize,
stack: &mut Vec<Option<Arc<String>>>,
closure_stack: &mut Vec<usize>,
module: &Module)
Trait Implementations
impl Debug for Item
[src]
impl Clone for Item
[src]
fn clone(&self) -> Item
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more