pub struct GraphDescBuf<const N: usize, const E: usize> { /* private fields */ }Expand description
Owned, no-alloc descriptor (arrays are stored by value).
Implementations§
Source§impl<const N: usize, const E: usize> GraphDescBuf<N, E>
impl<const N: usize, const E: usize> GraphDescBuf<N, E>
Sourcepub fn new(nodes: [NodeDescriptor; N], edges: [EdgeDescriptor; E]) -> Self
pub fn new(nodes: [NodeDescriptor; N], edges: [EdgeDescriptor; E]) -> Self
Construct a new GraphDescBuf owning node and edge descriptor arrays.
Sourcepub fn nodes(&self) -> &[NodeDescriptor; N]
pub fn nodes(&self) -> &[NodeDescriptor; N]
Borrow the node descriptors.
Sourcepub fn edges(&self) -> &[EdgeDescriptor; E]
pub fn edges(&self) -> &[EdgeDescriptor; E]
Borrow the edge descriptors.
Trait Implementations§
Source§impl<const N: usize, const E: usize> Clone for GraphDescBuf<N, E>
impl<const N: usize, const E: usize> Clone for GraphDescBuf<N, E>
Source§fn clone(&self) -> GraphDescBuf<N, E>
fn clone(&self) -> GraphDescBuf<N, E>
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<const N: usize, const E: usize> GraphValidator for GraphDescBuf<N, E>
impl<const N: usize, const E: usize> GraphValidator for GraphDescBuf<N, E>
Auto Trait Implementations§
impl<const N: usize, const E: usize> Freeze for GraphDescBuf<N, E>
impl<const N: usize, const E: usize> RefUnwindSafe for GraphDescBuf<N, E>
impl<const N: usize, const E: usize> Send for GraphDescBuf<N, E>
impl<const N: usize, const E: usize> Sync for GraphDescBuf<N, E>
impl<const N: usize, const E: usize> Unpin for GraphDescBuf<N, E>
impl<const N: usize, const E: usize> UnsafeUnpin for GraphDescBuf<N, E>
impl<const N: usize, const E: usize> UnwindSafe for GraphDescBuf<N, E>
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