Struct dyon::ast::Function [−][src]
pub struct Function { pub namespace: Arc<Vec<Arc<String>>>, pub name: Arc<String>, pub file: Arc<String>, pub source: Arc<String>, pub args: Vec<Arg>, pub currents: Vec<Current>, pub block: Block, pub ret: Type, pub resolved: Arc<AtomicBool>, pub source_range: Range, pub senders: Arc<(AtomicBool, Mutex<Vec<Sender<Variable>>>)>, }
Fields
namespace: Arc<Vec<Arc<String>>>
name: Arc<String>
file: Arc<String>
source: Arc<String>
args: Vec<Arg>
currents: Vec<Current>
block: Block
ret: Type
resolved: Arc<AtomicBool>
source_range: Range
senders: Arc<(AtomicBool, Mutex<Vec<Sender<Variable>>>)>
Methods
impl Function
[src]
impl Function
pub fn from_meta_data(
namespace: &Arc<Vec<Arc<String>>>,
file: &Arc<String>,
source: &Arc<String>,
node: &str,
convert: Convert,
ignored: &mut Vec<Range>
) -> Result<(Range, Function), ()>
[src]
pub fn from_meta_data(
namespace: &Arc<Vec<Arc<String>>>,
file: &Arc<String>,
source: &Arc<String>,
node: &str,
convert: Convert,
ignored: &mut Vec<Range>
) -> Result<(Range, Function), ()>
pub fn returns(&self) -> bool
[src]
pub fn returns(&self) -> bool
pub fn resolve_locals(
&self,
relative: usize,
module: &Module,
use_lookup: &UseLookup
)
[src]
pub fn resolve_locals(
&self,
relative: usize,
module: &Module,
use_lookup: &UseLookup
)
Trait Implementations
impl Debug for Function
[src]
impl Debug for Function
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for Function
[src]
impl Clone for Function