pub enum Decl {
Show 14 variants
Computed {
param_tys: SmallVec<[ExprId; 2]>,
params: Range<DeclId>,
scope: ImperScopeId,
generic_params: Range<DeclId>,
},
ComputedPrototype {
param_tys: SmallVec<[ExprId; 2]>,
extern_func: Option<ExternFunctionRef>,
},
Stored {
id: StoredDeclId,
is_mut: bool,
root_expr: ExprId,
},
PatternBinding {
id: PatternBindingDeclId,
is_mut: bool,
},
LoopBinding {
id: StoredDeclId,
is_mut: bool,
},
Parameter {
index: usize,
},
Intrinsic {
intr: Intrinsic,
param_tys: SmallVec<[ExprId; 2]>,
function_like: bool,
},
Static(ExprId),
Const(ExprId),
Field {
strukt: StructId,
index: usize,
},
InternalField(InternalField),
Variant {
enuum: EnumId,
index: usize,
payload_ty: Option<ExprId>,
},
ReturnValue,
GenericParam(GenericParamId),
}
Variants
Computed
Fields
scope: ImperScopeId
ComputedPrototype
Stored
PatternBinding
LoopBinding
Parameter
Fields
index: usize
Parameter index within the function
Intrinsic
Static(ExprId)
Const(ExprId)
Field
InternalField(InternalField)
Variant
ReturnValue
The magic return_value
declaration, for use in @guarantees
attributes
GenericParam(GenericParamId)
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Decl
impl Send for Decl
impl Sync for Decl
impl Unpin for Decl
impl UnwindSafe for Decl
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more