Struct erg_compiler::context::ParamSpec
source · pub struct ParamSpec {
pub is_var_params: bool,
pub default_info: DefaultInfo,
/* private fields */
}
Fields§
§is_var_params: bool
§default_info: DefaultInfo
Implementations§
source§impl ParamSpec
impl ParamSpec
pub fn new<S: Into<Str>>( name: Option<S>, t: Type, is_var_params: bool, default: DefaultInfo, loc: AbsLocation ) -> Self
pub fn named<S: Into<Str>>( name: S, t: Type, is_var_params: bool, default: DefaultInfo ) -> Self
pub fn named_nd<S: Into<Str>>(name: S, t: Type) -> Self
pub fn default<S: Into<Str>>(name: S, t: Type) -> Self
pub fn t<S: Into<Str>>( name: S, is_var_params: bool, default: DefaultInfo ) -> Self
pub fn t_nd<S: Into<Str>>(name: S) -> Self
pub fn has_default(&self) -> bool
Trait Implementations§
source§impl PartialEq<ParamSpec> for ParamSpec
impl PartialEq<ParamSpec> for ParamSpec
impl Eq for ParamSpec
impl StructuralEq for ParamSpec
impl StructuralPartialEq for ParamSpec
Auto Trait Implementations§
impl RefUnwindSafe for ParamSpec
impl Send for ParamSpec
impl Sync for ParamSpec
impl Unpin for ParamSpec
impl UnwindSafe for ParamSpec
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