pub struct ElementaryNet { /* private fields */ }Expand description
A simple implementation of an Elementary net (EN) with no extensions.
Trait Implementations§
Source§impl Debug for ElementaryNet
impl Debug for ElementaryNet
Source§impl Default for ElementaryNet
impl Default for ElementaryNet
Source§fn default() -> ElementaryNet
fn default() -> ElementaryNet
Returns the “default value” for a type. Read more
Source§impl From<&ElementaryNet> for SimpleMarking
impl From<&ElementaryNet> for SimpleMarking
Source§fn from(net: &ElementaryNet) -> Self
fn from(net: &ElementaryNet) -> Self
Converts to this type from the input type.
Source§impl Net for ElementaryNet
impl Net for ElementaryNet
type Place = SimplePlace
type Transition = SimpleTransition
type Arc = SimpleArc
fn places(&self) -> Vec<&Self::Place>
fn place(&self, id: &NodeId) -> Option<&Self::Place>
fn place_mut(&mut self, id: &NodeId) -> Option<&mut Self::Place>
fn transitions(&self) -> Vec<&Self::Transition>
fn transition(&self, id: &NodeId) -> Option<&Self::Transition>
fn transition_mut(&mut self, id: &NodeId) -> Option<&mut Self::Transition>
fn arcs(&self) -> Vec<&Self::Arc>
fn inputs(&self, id: &NodeId) -> Vec<&NodeId>
fn outputs(&self, id: &NodeId) -> Vec<&NodeId>
fn add_place(&mut self) -> NodeId
fn add_labeled_place<S>(&mut self, label: S) -> NodeId
fn add_transition(&mut self) -> NodeId
fn add_labeled_transition<S>(&mut self, label: S) -> NodeId
fn add_arc(&mut self, source: NodeId, target: NodeId)
Auto Trait Implementations§
impl Freeze for ElementaryNet
impl RefUnwindSafe for ElementaryNet
impl Send for ElementaryNet
impl Sync for ElementaryNet
impl Unpin for ElementaryNet
impl UnwindSafe for ElementaryNet
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