Struct erg_parser::ast::DefaultParamTySpec
source · [−]pub struct DefaultParamTySpec {
pub param: ParamTySpec,
pub default: TypeSpec,
}
Fields
param: ParamTySpec
default: TypeSpec
Implementations
sourceimpl DefaultParamTySpec
impl DefaultParamTySpec
pub const fn new(param: ParamTySpec, default: TypeSpec) -> Self
Trait Implementations
sourceimpl Clone for DefaultParamTySpec
impl Clone for DefaultParamTySpec
sourcefn clone(&self) -> DefaultParamTySpec
fn clone(&self) -> DefaultParamTySpec
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 DefaultParamTySpec
impl Debug for DefaultParamTySpec
sourceimpl Display for DefaultParamTySpec
impl Display for DefaultParamTySpec
sourceimpl Hash for DefaultParamTySpec
impl Hash for DefaultParamTySpec
sourceimpl PartialEq<DefaultParamTySpec> for DefaultParamTySpec
impl PartialEq<DefaultParamTySpec> for DefaultParamTySpec
sourcefn eq(&self, other: &DefaultParamTySpec) -> bool
fn eq(&self, other: &DefaultParamTySpec) -> bool
impl Eq for DefaultParamTySpec
impl StructuralEq for DefaultParamTySpec
impl StructuralPartialEq for DefaultParamTySpec
Auto Trait Implementations
impl RefUnwindSafe for DefaultParamTySpec
impl !Send for DefaultParamTySpec
impl !Sync for DefaultParamTySpec
impl Unpin for DefaultParamTySpec
impl UnwindSafe for DefaultParamTySpec
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