pub struct FunctionCaptures<'s> {
pub colon: &'s Token<'s>,
pub open: &'s Token<'s>,
pub names: SeparatedListTrailing0<'s, Identifier<'s>>,
pub close: &'s Token<'s>,
}Expand description
List of captured variables (aka free variables) in a FunctionDefinition.
Grammar: : ( SeparatedListTrailing0<Identifier ,> )
Fields§
§colon: &'s Token<'s>§open: &'s Token<'s>§names: SeparatedListTrailing0<'s, Identifier<'s>>§close: &'s Token<'s>Trait Implementations§
Source§impl<'s> Clone for FunctionCaptures<'s>
impl<'s> Clone for FunctionCaptures<'s>
Source§fn clone(&self) -> FunctionCaptures<'s>
fn clone(&self) -> FunctionCaptures<'s>
Returns a duplicate 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<'s> Freeze for FunctionCaptures<'s>
impl<'s> RefUnwindSafe for FunctionCaptures<'s>
impl<'s> Send for FunctionCaptures<'s>
impl<'s> Sync for FunctionCaptures<'s>
impl<'s> Unpin for FunctionCaptures<'s>
impl<'s> UnwindSafe for FunctionCaptures<'s>
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