pub enum Extern {
Extractor {
term: Ident,
func: Ident,
pos: Pos,
infallible: bool,
},
Constructor {
term: Ident,
func: Ident,
pos: Pos,
},
Const {
name: Ident,
ty: Ident,
pos: Pos,
},
}
Expand description
An external binding: an extractor or constructor function attached to a term.
Variants§
Extractor
An external extractor: (extractor Term rustfunc)
form.
Fields
Constructor
An external constructor: (constructor Term rustfunc)
form.
Fields
Const
An external constant: (const $IDENT type)
form.
Trait Implementations§
impl Eq for Extern
impl StructuralPartialEq for Extern
Auto Trait Implementations§
impl Freeze for Extern
impl RefUnwindSafe for Extern
impl Send for Extern
impl Sync for Extern
impl Unpin for Extern
impl UnwindSafe for Extern
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
)