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