pub struct CursorNeighborhood {
pub ancestors: Vec<BlockId>,
pub children: Vec<BlockId>,
pub siblings: Vec<BlockId>,
pub connections: Vec<(BlockId, EdgeType)>,
pub computed_at: DateTime<Utc>,
pub stale: bool,
}Expand description
The cached visible neighborhood around cursor position.
Fields§
§ancestors: Vec<BlockId>Parent chain to root (limited depth).
children: Vec<BlockId>Immediate children.
siblings: Vec<BlockId>Siblings at same level.
connections: Vec<(BlockId, EdgeType)>Semantic connections (via edges).
computed_at: DateTime<Utc>Timestamp when neighborhood was computed.
stale: boolWhether neighborhood needs refresh.
Implementations§
Source§impl CursorNeighborhood
impl CursorNeighborhood
pub fn new() -> Self
Sourcepub fn total_blocks(&self) -> usize
pub fn total_blocks(&self) -> usize
Total blocks in neighborhood.
Trait Implementations§
Source§impl Clone for CursorNeighborhood
impl Clone for CursorNeighborhood
Source§fn clone(&self) -> CursorNeighborhood
fn clone(&self) -> CursorNeighborhood
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 moreSource§impl Debug for CursorNeighborhood
impl Debug for CursorNeighborhood
Auto Trait Implementations§
impl Freeze for CursorNeighborhood
impl RefUnwindSafe for CursorNeighborhood
impl Send for CursorNeighborhood
impl Sync for CursorNeighborhood
impl Unpin for CursorNeighborhood
impl UnwindSafe for CursorNeighborhood
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