pub enum Tree {
Std,
Repository(String),
Local,
}Expand description
The tree a module is in, as a code.Tree writes it: std, a repository
by its host path, or the local tree or bundle a program was formed from.
Variants§
Std
std.
Repository(String)
A repository, by its host path, such as github.com/acme/tools.
Local
The local tree, or a bundle.
Implementations§
Trait Implementations§
impl Eq for Tree
Source§impl Ord for Tree
impl Ord for Tree
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for Tree
impl PartialOrd for Tree
impl StructuralPartialEq for Tree
Auto Trait Implementations§
impl Forget for Tree
impl Freeze for Tree
impl Move for Tree
impl RefUnwindSafe for Tree
impl Send for Treewhere
RawVecInner: Send,
impl Sync for Treewhere
RawVecInner: Sync,
impl Unpin for Tree
impl UnsafeUnpin for Tree
impl UnwindSafe for Treewhere
RawVecInner: UnwindSafe,
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