pub struct VertexView<'s> { /* private fields */ }Expand description
Immutable view into a vertex’s data in the columnar store
Provides zero-cost abstraction for ergonomic access to vertex fields
Implementations§
Source§impl<'s> VertexView<'s>
impl<'s> VertexView<'s>
pub fn new(store: &'s VertexStore, id: VertexId) -> Self
pub fn id(&self) -> VertexId
pub fn row(&self) -> u32
pub fn col(&self) -> u32
pub fn sheet_id(&self) -> u16
pub fn is_dirty(&self) -> bool
pub fn is_volatile(&self) -> bool
pub fn is_deleted(&self) -> bool
pub fn kind(&self) -> VertexKind
pub fn value_ref(&self) -> u32
pub fn edge_offset(&self) -> u32
pub fn flags(&self) -> u8
Trait Implementations§
Source§impl<'s> Debug for VertexView<'s>
impl<'s> Debug for VertexView<'s>
Auto Trait Implementations§
impl<'s> Freeze for VertexView<'s>
impl<'s> RefUnwindSafe for VertexView<'s>
impl<'s> Send for VertexView<'s>
impl<'s> Sync for VertexView<'s>
impl<'s> Unpin for VertexView<'s>
impl<'s> UnwindSafe for VertexView<'s>
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more