pub enum HomeLeaf {
Module,
New,
Value,
}Expand description
Which of the three home-module leaves a reference is. They share one variant because they share the whole of their machinery — one walk to the terminal, one parse clause each, no capture — and differ only in what they evaluate to once it is found.
Variants§
Module
__module — the home module itself, a Value::Module.
New
__new — the object constructor over the home module: the object builtin
with the module already applied, so what is left takes the payload.
Value
__value — the payload reader over the home module, the same shape. In
pattern position the name is Pattern::Unwrap instead.
Implementations§
Trait Implementations§
impl Copy for HomeLeaf
impl Eq for HomeLeaf
impl StructuralPartialEq for HomeLeaf
Auto Trait Implementations§
impl Freeze for HomeLeaf
impl RefUnwindSafe for HomeLeaf
impl Send for HomeLeaf
impl Sync for HomeLeaf
impl Unpin for HomeLeaf
impl UnsafeUnpin for HomeLeaf
impl UnwindSafe for HomeLeaf
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