Struct erg_compiler::context::ParamSpec
source · [−]pub struct ParamSpec {
pub default_info: DefaultInfo,
/* private fields */
}
Fields
default_info: DefaultInfo
Implementations
sourceimpl ParamSpec
impl ParamSpec
pub const fn new(
name: Option<&'static str>,
t: Type,
default: DefaultInfo
) -> Self
pub const fn named(name: &'static str, t: Type, default: DefaultInfo) -> Self
pub const fn named_nd(name: &'static str, t: Type) -> Self
pub const fn t(name: &'static str, default: DefaultInfo) -> Self
pub const fn t_nd(name: &'static str) -> Self
Trait Implementations
sourceimpl 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
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