pub enum Follow {
StructField {
node: Node,
field: String,
},
Node {
node: Node,
},
Drift,
}Expand description
The outcome of Workspace::follow_definition: where a cross-repo follow-hop
lands.
Variants§
StructField
Bridged past a config_key node to the hub struct that declares the
setting, carrying the specific named field that matched (e.g. the
ServeConfig struct for serve.addr, field = "addr"). The node is the
real struct node, so a caller can center it in the hub graph.
Fields
Node
The resolved target node itself, unbridged — a config_key we could not map
to a struct with confidence (the safe fallback), or any non-config target a
spoke points straight at.
Drift
The target is well-formed but its node is gone — cross-repo drift.
Trait Implementations§
impl Eq for Follow
impl StructuralPartialEq for Follow
Auto Trait Implementations§
impl Freeze for Follow
impl RefUnwindSafe for Follow
impl Send for Follow
impl Sync for Follow
impl Unpin for Follow
impl UnsafeUnpin for Follow
impl UnwindSafe for Follow
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
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.