Release 0.2.4 #7

Merged
warrence merged 19 commits from release-0.2.4 into main 2026-07-31 09:38:27 +02:00
Showing only changes of commit 9a1e2faa9a - Show all commits
+4
View File
@@ -39,10 +39,12 @@ impl<V: Copy, T: Clone> VertexMap<V, T> {
} }
#[deprecated(since = "0.2.2", note = "use 'capacity' instead")] #[deprecated(since = "0.2.2", note = "use 'capacity' instead")]
#[allow(missing_docs)]
pub fn len(&self) -> usize { pub fn len(&self) -> usize {
self.capacity() self.capacity()
} }
#[allow(missing_docs)]
pub fn sync<G: GraphTopology<Vertex = V>>(&mut self, graph: &G) { pub fn sync<G: GraphTopology<Vertex = V>>(&mut self, graph: &G) {
self.inner.resize(graph.vertex_capacity()); self.inner.resize(graph.vertex_capacity());
} }
@@ -94,10 +96,12 @@ impl<E: Copy, T: Clone> EdgeMap<E, T> {
} }
#[deprecated(since = "0.2.2", note = "use 'capacity' instead")] #[deprecated(since = "0.2.2", note = "use 'capacity' instead")]
#[allow(missing_docs)]
pub fn len(&self) -> usize { pub fn len(&self) -> usize {
self.capacity() self.capacity()
} }
#[allow(missing_docs)]
pub fn sync<G: GraphTopology<Edge = E>>(&mut self, graph: &G) { pub fn sync<G: GraphTopology<Edge = E>>(&mut self, graph: &G) {
self.inner.resize(graph.edge_capacity()); self.inner.resize(graph.edge_capacity());
} }