pub struct NeighborhoodView {
pub position: BlockId,
pub ancestors: Vec<BlockView>,
pub children: Vec<BlockView>,
pub siblings: Vec<BlockView>,
pub connections: Vec<(BlockView, EdgeType)>,
}Expand description
View of the cursor neighborhood.
Fields§
§position: BlockIdCurrent position.
ancestors: Vec<BlockView>Parent blocks.
children: Vec<BlockView>Child blocks.
siblings: Vec<BlockView>Sibling blocks.
connections: Vec<(BlockView, EdgeType)>Connected blocks via semantic edges.
Trait Implementations§
Source§impl Clone for NeighborhoodView
impl Clone for NeighborhoodView
Source§fn clone(&self) -> NeighborhoodView
fn clone(&self) -> NeighborhoodView
Returns a duplicate of the value. Read more
1.0.0 · 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 NeighborhoodView
impl RefUnwindSafe for NeighborhoodView
impl Send for NeighborhoodView
impl Sync for NeighborhoodView
impl Unpin for NeighborhoodView
impl UnwindSafe for NeighborhoodView
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