pub enum PathStart {
Crate,
SelfMod,
Super,
None,
}Expand description
Where a path starts (spec 3.1, 3.3): one of the three keyword prefixes,
or nothing (a plain module name declared in this file, or no module
segment at all). The parser records whichever prefix is written;
resolving Crate and Super to an actual module, and rejecting
Super in the crate root (V0111), is the compiler’s resolver’s job.
Variants§
Trait Implementations§
impl Copy for PathStart
impl Eq for PathStart
impl StructuralPartialEq for PathStart
Auto Trait Implementations§
impl Freeze for PathStart
impl RefUnwindSafe for PathStart
impl Send for PathStart
impl Sync for PathStart
impl Unpin for PathStart
impl UnsafeUnpin for PathStart
impl UnwindSafe for PathStart
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