Struct graphlang::Production
source · [−]pub struct Production<I: Index, NL: Label, EL: Label> { /* private fields */ }
Expand description
A double-pushout production (DPO). For a description of the theory behind
it please refer to the crates README.md
.
It is a rule how to transform a specific part of an Graph
into another and
the core of a GraphGrammar
.
Implementations
sourceimpl<I: Index, NL: Label, EL: Label> Production<I, NL, EL>
impl<I: Index, NL: Label, EL: Label> Production<I, NL, EL>
Trait Implementations
sourceimpl<I: Clone + Index, NL: Clone + Label, EL: Clone + Label> Clone for Production<I, NL, EL>
impl<I: Clone + Index, NL: Clone + Label, EL: Clone + Label> Clone for Production<I, NL, EL>
sourcefn clone(&self) -> Production<I, NL, EL>
fn clone(&self) -> Production<I, NL, EL>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<'de, I: Index, NL: Label, EL: Label> Deserialize<'de> for Production<I, NL, EL> where
I: Deserialize<'de>,
NL: Deserialize<'de>,
EL: Deserialize<'de>,
impl<'de, I: Index, NL: Label, EL: Label> Deserialize<'de> for Production<I, NL, EL> where
I: Deserialize<'de>,
NL: Deserialize<'de>,
EL: Deserialize<'de>,
sourcefn 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
sourceimpl<I: Index> From<Production<I, &'_ str, ()>> for Production<I, String, ()>
impl<I: Index> From<Production<I, &'_ str, ()>> for Production<I, String, ()>
sourcefn from(g: Production<I, &str, ()>) -> Self
fn from(g: Production<I, &str, ()>) -> Self
Converts to this type from the input type.
sourceimpl<I: PartialEq + Index, NL: PartialEq + Label, EL: PartialEq + Label> PartialEq<Production<I, NL, EL>> for Production<I, NL, EL>
impl<I: PartialEq + Index, NL: PartialEq + Label, EL: PartialEq + Label> PartialEq<Production<I, NL, EL>> for Production<I, NL, EL>
sourcefn eq(&self, other: &Production<I, NL, EL>) -> bool
fn eq(&self, other: &Production<I, NL, EL>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &Production<I, NL, EL>) -> bool
fn ne(&self, other: &Production<I, NL, EL>) -> bool
This method tests for !=
.
sourceimpl<I: Index, NL: Label, EL: Label> Serialize for Production<I, NL, EL> where
I: Serialize,
NL: Serialize,
EL: Serialize,
impl<I: Index, NL: Label, EL: Label> Serialize for Production<I, NL, EL> where
I: Serialize,
NL: Serialize,
EL: Serialize,
impl<I: Index, NL: Label, EL: Label> StructuralPartialEq for Production<I, NL, EL>
Auto Trait Implementations
impl<I, NL, EL> RefUnwindSafe for Production<I, NL, EL> where
EL: RefUnwindSafe,
I: RefUnwindSafe,
NL: RefUnwindSafe,
impl<I, NL, EL> Send for Production<I, NL, EL> where
EL: Send,
I: Send,
NL: Send,
impl<I, NL, EL> Sync for Production<I, NL, EL> where
EL: Sync,
I: Sync,
NL: Sync,
impl<I, NL, EL> Unpin for Production<I, NL, EL> where
EL: Unpin,
I: Unpin,
NL: Unpin,
impl<I, NL, EL> UnwindSafe for Production<I, NL, EL> where
EL: UnwindSafe,
I: UnwindSafe,
NL: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more