Struct chalk_parse::ast::ClosureDefn
source · pub struct ClosureDefn {
pub name: Identifier,
pub kind: ClosureKind,
pub variable_kinds: Vec<VariableKind>,
pub argument_types: Vec<Ty>,
pub return_type: Ty,
pub upvars: Vec<Ty>,
}
Fields§
§name: Identifier
§kind: ClosureKind
§variable_kinds: Vec<VariableKind>
§argument_types: Vec<Ty>
§return_type: Ty
§upvars: Vec<Ty>
Trait Implementations§
source§impl Clone for ClosureDefn
impl Clone for ClosureDefn
source§fn clone(&self) -> ClosureDefn
fn clone(&self) -> ClosureDefn
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 moresource§impl Debug for ClosureDefn
impl Debug for ClosureDefn
source§impl PartialEq for ClosureDefn
impl PartialEq for ClosureDefn
source§fn eq(&self, other: &ClosureDefn) -> bool
fn eq(&self, other: &ClosureDefn) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ClosureDefn
impl StructuralPartialEq for ClosureDefn
Auto Trait Implementations§
impl Freeze for ClosureDefn
impl RefUnwindSafe for ClosureDefn
impl Send for ClosureDefn
impl Sync for ClosureDefn
impl Unpin for ClosureDefn
impl UnwindSafe for ClosureDefn
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)