[−][src]Struct freebsd_geom::Graph
A geom::Graph
represents a snapshot of the GEOM state of a FreeBSD instance.
(Math jargon: It is actually a "forest" of disconnected components, rather than a "graph," and those components form "trees.")
Fields
nodes: BTreeMap<NodeId, Geom>
Contains all of the Geom
s in the forest
edges: BTreeMap<EdgeId, Edge>
Contains all of the Edge
s in the forest
outedges: BTreeMap<NodeId, Vec<EdgeId>>
Represents the out-edges of each Geom
, by id
inedges: BTreeMap<NodeId, Vec<EdgeId>>
Represents the in-edges of each Geom
, by id
Implementations
impl Graph
[src]
pub fn roots_iter(&self) -> RootsIter<'_>
[src]
Returns an Iterator
which yields each (&NodeId, &Geom)
for roots (i.e., rank
1).
pub fn child_edgeids_iter(&self, id: &NodeId) -> ChildEdgeIdsIter<'_>
[src]
Given the NodeId
of a Geom
, returns an Iterator
which yields each EdgeId
descending
from the node.
pub fn child_edges_iter(&self, id: &NodeId) -> ChildEdgesIter<'_>
[src]
Given the NodeId
of a Geom
, returns an Iterator
which yields each (&EdgeId, &Edge)
descending from the node.
pub fn child_geoms_iter(&self, id: &NodeId) -> ChildGeomsIter<'_>
[src]
Given the NodeId
of a Geom, returns an
Iteratorwhich yields each
(&EdgeId, &Edge,
&Geom)` descending from the node.
pub fn descendents_iter<'a>(
&'a self,
id: &NodeId
) -> Box<dyn Iterator<Item = (&'a EdgeId, &'a Edge, &'a Geom)> + 'a>
[src]
&'a self,
id: &NodeId
) -> Box<dyn Iterator<Item = (&'a EdgeId, &'a Edge, &'a Geom)> + 'a>
Given the NodeId
of a Geom`, iterate every Geom descending from it.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Graph
[src]
impl Send for Graph
[src]
impl Sync for Graph
[src]
impl Unpin for Graph
[src]
impl UnwindSafe for Graph
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,