Enum erg_common::ty::SubrKind
source · [−]pub enum SubrKind {
Func,
Proc,
FuncMethod(Box<Type>),
ProcMethod {
before: Box<Type>,
after: Option<Box<Type>>,
},
}
Variants
Func
Proc
FuncMethod(Box<Type>)
ProcMethod
Implementations
sourceimpl SubrKind
impl SubrKind
pub fn fn_met(t: Type) -> Self
pub fn pr_met(before: Type, after: Option<Type>) -> Self
pub const fn arrow(&self) -> &str
pub const fn inner_len(&self) -> usize
pub fn prefix(&self) -> String
pub fn has_unbound_var(&self) -> bool
pub fn same_kind_as(&self, other: &Self) -> bool
pub fn self_t(&self) -> Option<&Type>
pub fn self_t_mut(&mut self) -> Option<&mut Type>
Trait Implementations
impl Eq for SubrKind
impl StructuralEq for SubrKind
impl StructuralPartialEq for SubrKind
Auto Trait Implementations
impl !RefUnwindSafe for SubrKind
impl !Send for SubrKind
impl !Sync for SubrKind
impl Unpin for SubrKind
impl !UnwindSafe for SubrKind
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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