Struct dyon::ast::CallClosure
source · pub struct CallClosure {
pub item: Item,
pub args: Vec<Expression>,
pub source_range: Range,
}
Expand description
Closure call.
Fields§
§item: Item
The closure.
args: Vec<Expression>
Closure argument expressions.
source_range: Range
The range in source.
Implementations§
source§impl CallClosure
impl CallClosure
sourcepub fn from_meta_data(
file: &Arc<String>,
source: &Arc<String>,
convert: Convert<'_>,
ignored: &mut Vec<Range>
) -> Result<(Range, CallClosure), ()>
pub fn from_meta_data( file: &Arc<String>, source: &Arc<String>, convert: Convert<'_>, ignored: &mut Vec<Range> ) -> Result<(Range, CallClosure), ()>
Creates closure call from meta data.
Trait Implementations§
source§impl Clone for CallClosure
impl Clone for CallClosure
source§fn clone(&self) -> CallClosure
fn clone(&self) -> CallClosure
Returns a copy 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 !RefUnwindSafe for CallClosure
impl Send for CallClosure
impl !Sync for CallClosure
impl Unpin for CallClosure
impl !UnwindSafe for CallClosure
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