pub enum NodeKind {
Doc,
Missing,
Cycle,
Unreadable(String),
UnresolvedId(Id),
AmbiguousAlias(String),
Foreign {
workspace: String,
id: Id,
},
}Expand description
Why a node appears in the tree the way it does.
Variants§
Doc
A document that was read and parsed.
Missing
A spanning target that does not exist on disk.
Cycle
A target already on the path from the root — a containment cycle. Not descended into.
Unreadable(String)
A file that exists but could not be read or parsed; the message says why.
UnresolvedId(Id)
An id:<id> target the registry does not currently resolve
(unknown, tombstoned, or no registry attached).
AmbiguousAlias(String)
A nominal (alias) target whose name several documents claim — a containment link that cannot be resolved to one child.
Foreign
An id:<workspace>/<id> target naming a document in another workspace.
A leaf, always: the tree is this workspace’s spanning walk, and prov
has no map from a workspace name to a location to follow (see
Target::Foreign). Shown rather
than dropped, because the link is really declared and a reader deserves
to see the structure leave the building.
Trait Implementations§
impl Eq for NodeKind
impl StructuralPartialEq for NodeKind
Auto Trait Implementations§
impl Freeze for NodeKind
impl RefUnwindSafe for NodeKind
impl Send for NodeKind
impl Sync for NodeKind
impl Unpin for NodeKind
impl UnsafeUnpin for NodeKind
impl UnwindSafe for NodeKind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.