pub struct ParamDecl<P: Phase = Raw> {
pub name: Spanned<DeclName>,
pub type_ann: TypeExpr<P>,
pub value: Option<Expr<P>>,
}Fields§
§name: Spanned<DeclName>§type_ann: TypeExpr<P>§value: Option<Expr<P>>The default value expression. None for required params (no default).
Trait Implementations§
Source§impl FormatEquivalent for ParamDecl
impl FormatEquivalent for ParamDecl
Source§fn format_equivalent(&self, other: &Self) -> bool
fn format_equivalent(&self, other: &Self) -> bool
Returns
true if self and other are equivalent up to formatting.Auto Trait Implementations§
impl<P> Freeze for ParamDecl<P>
impl<P> RefUnwindSafe for ParamDecl<P>
impl<P> Send for ParamDecl<P>
impl<P> Sync for ParamDecl<P>
impl<P> Unpin for ParamDecl<P>
impl<P> UnsafeUnpin for ParamDecl<P>
impl<P> UnwindSafe for ParamDecl<P>
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