pub struct EdgeStorage {
pub edges: Array<Edge>,
/* private fields */
}Fields§
§edges: Array<Edge>Implementations§
Source§impl EdgeStorage
impl EdgeStorage
Sourcepub fn new_large() -> Self
pub fn new_large() -> Self
Creates a new graph with the assumption that the usage will be dynamic. It will create the graph with high reserve count of 50 to avoid reallocations.
Sourcepub fn with_reserve(capacity: Ci) -> Self
pub fn with_reserve(capacity: Ci) -> Self
Creates a new graph with a custom reserve
Trait Implementations§
Source§impl Clone for EdgeStorage
impl Clone for EdgeStorage
Source§impl Default for EdgeStorage
impl Default for EdgeStorage
Source§impl EdgeConnect for EdgeStorage
impl EdgeConnect for EdgeStorage
Source§impl EdgeStore for EdgeStorage
impl EdgeStore for EdgeStorage
fn create_vertex_entry(&mut self, size: Ci) -> VHandle
fn edges_as_slice(&self, vertex: VHandle) -> &[Edge] ⓘ
fn edges_as_mut_slice(&mut self, vertex: VHandle) -> &mut [Edge] ⓘ
fn edges_as_ptr(&self, vertex: VHandle) -> FatPtr<Edge>
fn edges_as_mut_ptr(&mut self, vertex: VHandle) -> FatPtrMut<Edge>
fn edges_is_empty(&self, handle: VHandle) -> bool
fn edges_len(&self, handle: VHandle) -> usize
fn edges_capacity(&self, handle: VHandle) -> usize
fn edges_index(&self, vertex: VHandle) -> usize
fn iter(&self) -> impl Iterator<Item = &Edge>
fn iter_mut(&mut self) -> impl Iterator<Item = &mut Edge>
fn edges_iter(&self, handle: VHandle) -> impl Iterator<Item = &Edge>
fn edges_iter_mut(&mut self, handle: VHandle) -> impl Iterator<Item = &mut Edge>
Source§impl Index<usize> for EdgeStorage
impl Index<usize> for EdgeStorage
Source§impl IndexMut<usize> for EdgeStorage
impl IndexMut<usize> for EdgeStorage
Source§impl WeightedEdgeConnect for EdgeStorage
impl WeightedEdgeConnect for EdgeStorage
impl EdgeManipulate for EdgeStorage
impl WeightedEdgeManipulate for EdgeStorage
Auto Trait Implementations§
impl Freeze for EdgeStorage
impl RefUnwindSafe for EdgeStorage
impl !Send for EdgeStorage
impl !Sync for EdgeStorage
impl Unpin for EdgeStorage
impl UnwindSafe for EdgeStorage
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