pub enum HomeLeaf {
Module,
New,
Value,
}Expand description
Home-module leaf types: the module itself (Self), construction
(#Self(…)), or payload read (x.Self). These share the same resolution
machinery (one walk to the terminal) and differ only in their eval result.
Variants§
Module
Self — the home module as a Value::Module.
New
#Self(…) / #Self … — the object constructor for the home module.
Always the callee of an App. Renders as (new …).
Value
x.Self — the payload reader for the home module. Always the callee
of an App. In patterns, spelled as Pattern::Unwrap.
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