pub struct Federation {
pub tree: Node,
pub workspaces: Vec<Reached>,
}Expand description
A spanning tree that crossed one or more workspace boundaries, and the workspaces it crossed into.
Paths are namespaced by workspace rather than merged into one list, for the
reason the boundary proposal gives: a relative path means nothing once it has
crossed a root, so every node says which workspace’s terms it is in and a
consumer joins it onto that workspace’s root_dir to reach a file.
Fields§
§tree: NodeThe federated tree, rooted at the document descend was started from.
workspaces: Vec<Reached>Every workspace reached, index 0 being the origin.
Trait Implementations§
Source§impl Clone for Federation
impl Clone for Federation
Source§fn clone(&self) -> Federation
fn clone(&self) -> Federation
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for Federation
impl RefUnwindSafe for Federation
impl Send for Federation
impl Sync for Federation
impl Unpin for Federation
impl UnsafeUnpin for Federation
impl UnwindSafe for Federation
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