pub struct ParamEntry {
pub name: ScopedName,
pub type_ann: TypeExpr,
pub default_expr: Option<Expr>,
pub span: Span,
pub src: BodySource,
}Expand description
A param declaration with type annotation and lowered default.
Fields§
§name: ScopedName§type_ann: TypeExpr§default_expr: Option<Expr>§span: Span§src: BodySourceSource provenance of span; see ConstEntry::src (#868).
Trait Implementations§
Source§impl Clone for ParamEntry
impl Clone for ParamEntry
Source§fn clone(&self) -> ParamEntry
fn clone(&self) -> ParamEntry
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 Freeze for ParamEntry
impl RefUnwindSafe for ParamEntry
impl Send for ParamEntry
impl Sync for ParamEntry
impl Unpin for ParamEntry
impl UnsafeUnpin for ParamEntry
impl UnwindSafe for ParamEntry
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