Struct portdiff::graph_view::GraphView
source · pub struct GraphView<G: Graph>(/* private fields */);
Expand description
A view into a graph that only shows a subset of the nodes.
Implementations§
source§impl<G: Graph> GraphView<G>
impl<G: Graph> GraphView<G>
pub fn all_nodes(&self) -> impl Iterator<Item = NodeId<G>> + '_
pub fn from_sinks(sinks: impl IntoIterator<Item = PortDiff<G>>) -> Self
pub fn sinks(&self) -> impl Iterator<Item = PortDiff<G>> + '_
pub fn get_diff(&self, id: NodeId<G>) -> PortDiff<G>
pub fn merge(&mut self, other: Self)
pub fn inner(&self) -> &GraphView<PortDiffData<G>, EdgeData<G>>
pub fn lowest_common_ancestors( graphs: &[Self], ) -> impl Iterator<Item = NodeId<G>> + '_
Trait Implementations§
source§impl<'de, G> Deserialize<'de> for GraphView<G>where
G: Deserialize<'de> + Graph,
G::Node: Deserialize<'de>,
G::PortLabel: Deserialize<'de>,
G::Edge: Deserialize<'de>,
impl<'de, G> Deserialize<'de> for GraphView<G>where
G: Deserialize<'de> + Graph,
G::Node: Deserialize<'de>,
G::PortLabel: Deserialize<'de>,
G::Edge: Deserialize<'de>,
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl<G> Freeze for GraphView<G>
impl<G> !RefUnwindSafe for GraphView<G>
impl<G> !Send for GraphView<G>
impl<G> !Sync for GraphView<G>
impl<G> Unpin for GraphView<G>
impl<G> !UnwindSafe for GraphView<G>
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more