Struct erg_parser::ast::DefaultParamSignature
source · [−]pub struct DefaultParamSignature {
pub sig: NonDefaultParamSignature,
pub default_val: Expr,
}
Expand description
Once the default_value is set to Some, all subsequent values must be Some
Fields
sig: NonDefaultParamSignature
default_val: Expr
Implementations
Trait Implementations
sourceimpl Clone for DefaultParamSignature
impl Clone for DefaultParamSignature
sourcefn clone(&self) -> DefaultParamSignature
fn clone(&self) -> DefaultParamSignature
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for DefaultParamSignature
impl Debug for DefaultParamSignature
sourceimpl Display for DefaultParamSignature
impl Display for DefaultParamSignature
sourceimpl Hash for DefaultParamSignature
impl Hash for DefaultParamSignature
sourceimpl Locational for DefaultParamSignature
impl Locational for DefaultParamSignature
sourceimpl NestedDisplay for DefaultParamSignature
impl NestedDisplay for DefaultParamSignature
sourceimpl PartialEq<DefaultParamSignature> for DefaultParamSignature
impl PartialEq<DefaultParamSignature> for DefaultParamSignature
sourcefn eq(&self, other: &DefaultParamSignature) -> bool
fn eq(&self, other: &DefaultParamSignature) -> bool
impl Eq for DefaultParamSignature
impl StructuralEq for DefaultParamSignature
impl StructuralPartialEq for DefaultParamSignature
Auto Trait Implementations
impl RefUnwindSafe for DefaultParamSignature
impl !Send for DefaultParamSignature
impl !Sync for DefaultParamSignature
impl Unpin for DefaultParamSignature
impl UnwindSafe for DefaultParamSignature
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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