Struct chalk_parse::ast::CoroutineDefn
source · pub struct CoroutineDefn {
pub name: Identifier,
pub movability: Movability,
pub variable_kinds: Vec<VariableKind>,
pub upvars: Vec<Ty>,
pub resume_ty: Ty,
pub yield_ty: Ty,
pub return_ty: Ty,
pub witness_types: Vec<Ty>,
pub witness_lifetimes: Vec<Identifier>,
}
Fields§
§name: Identifier
§movability: Movability
§variable_kinds: Vec<VariableKind>
§upvars: Vec<Ty>
§resume_ty: Ty
§yield_ty: Ty
§return_ty: Ty
§witness_types: Vec<Ty>
§witness_lifetimes: Vec<Identifier>
Trait Implementations§
source§impl Clone for CoroutineDefn
impl Clone for CoroutineDefn
source§fn clone(&self) -> CoroutineDefn
fn clone(&self) -> CoroutineDefn
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 CoroutineDefn
impl Debug for CoroutineDefn
source§impl PartialEq for CoroutineDefn
impl PartialEq for CoroutineDefn
source§fn eq(&self, other: &CoroutineDefn) -> bool
fn eq(&self, other: &CoroutineDefn) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for CoroutineDefn
impl StructuralPartialEq for CoroutineDefn
Auto Trait Implementations§
impl Freeze for CoroutineDefn
impl RefUnwindSafe for CoroutineDefn
impl Send for CoroutineDefn
impl Sync for CoroutineDefn
impl Unpin for CoroutineDefn
impl UnwindSafe for CoroutineDefn
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
)