#[repr(C, align(8))]pub struct VertexEntry {
pub degree: u8,
pub flags: u8,
pub component: u16,
pub first_edge_idx: u16,
pub _reserved: u16,
}Expand description
Vertex adjacency entry
Size: 8 bytes, aligned for efficient access
Fields§
§degree: u8Degree (number of active neighbors)
flags: u8Vertex flags
component: u16Component ID (for connectivity tracking)
first_edge_idx: u16First edge index in adjacency list
_reserved: u16Reserved for alignment
Implementations§
Source§impl VertexEntry
impl VertexEntry
Sourcepub const FLAG_ACTIVE: u8 = 1u8
pub const FLAG_ACTIVE: u8 = 1u8
Vertex is active
Sourcepub const FLAG_BOUNDARY: u8 = 2u8
pub const FLAG_BOUNDARY: u8 = 2u8
Vertex is on cut boundary
Sourcepub const FLAG_GHOST: u8 = 8u8
pub const FLAG_GHOST: u8 = 8u8
Vertex is a ghost (owned by another tile)
Sourcepub const fn is_active(&self) -> bool
pub const fn is_active(&self) -> bool
Check if vertex is active
OPTIMIZATION: #[inline(always)] - called in every vertex iteration
Trait Implementations§
Source§impl Clone for VertexEntry
impl Clone for VertexEntry
Source§fn clone(&self) -> VertexEntry
fn clone(&self) -> VertexEntry
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 VertexEntry
impl Debug for VertexEntry
Source§impl Default for VertexEntry
impl Default for VertexEntry
Source§fn default() -> VertexEntry
fn default() -> VertexEntry
Returns the “default value” for a type. Read more
impl Copy for VertexEntry
Auto Trait Implementations§
impl Freeze for VertexEntry
impl RefUnwindSafe for VertexEntry
impl Send for VertexEntry
impl Sync for VertexEntry
impl Unpin for VertexEntry
impl UnwindSafe for VertexEntry
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