Struct erg_compiler::hir::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§
source§impl Clone for DefaultParamSignature
impl Clone for DefaultParamSignature
source§fn clone(&self) -> DefaultParamSignature
fn clone(&self) -> DefaultParamSignature
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 DefaultParamSignature
impl Debug for DefaultParamSignature
source§impl Display for DefaultParamSignature
impl Display for DefaultParamSignature
source§impl Hash for DefaultParamSignature
impl Hash for DefaultParamSignature
source§impl Locational for DefaultParamSignature
impl Locational for DefaultParamSignature
source§impl NoTypeDisplay for DefaultParamSignature
impl NoTypeDisplay for DefaultParamSignature
fn to_string_notype(&self) -> String
source§impl PartialEq for DefaultParamSignature
impl PartialEq for DefaultParamSignature
impl Eq for DefaultParamSignature
impl StructuralPartialEq for DefaultParamSignature
Auto Trait Implementations§
impl Freeze for DefaultParamSignature
impl RefUnwindSafe for DefaultParamSignature
impl Send for DefaultParamSignature
impl Sync for DefaultParamSignature
impl Unpin for DefaultParamSignature
impl UnwindSafe for DefaultParamSignature
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)