pub enum ProtoRef {
Kind(TyKind),
Ref(Expr),
}Expand description
Prototype used in as <Proto> patterns.
Variants§
Kind(TyKind)
Fast form: a reference to a builtin module prototype (e.g., Int).
Compiles to a discriminant test TyKind.
Ref(Expr)
Any other prototype, evaluated at match time and required to be a module.
Trait Implementations§
impl Eq for ProtoRef
impl StructuralPartialEq for ProtoRef
Auto Trait Implementations§
impl !RefUnwindSafe for ProtoRef
impl !Send for ProtoRef
impl !Sync for ProtoRef
impl !UnwindSafe for ProtoRef
impl Freeze for ProtoRef
impl Unpin for ProtoRef
impl UnsafeUnpin for ProtoRef
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