NetMatrixFormatter

Struct NetMatrixFormatter 

Source
pub struct NetMatrixFormatter<P, T, A, N>
where P: Place, T: Transition, A: Arc, N: Net<Place = P, Transition = T, Arc = A>,
{ /* private fields */ }
Expand description

Write a matrix with all nodes showing the arcs that connect them. This outputs the table in the markdown/org-mode format.

§Example

Given the simple net \(\circ\rightarrow\rule[-1pt]{3pt}{0.75em}\rightarrow\circ\), the matrix is as follows:

p0p1t0
p0↗︎
p1
t0↗︎

Trait Implementations§

Source§

impl<P, T, A, N> Debug for NetMatrixFormatter<P, T, A, N>
where P: Place + Debug, T: Transition + Debug, A: Arc + Debug, N: Net<Place = P, Transition = T, Arc = A> + Debug,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<P, T, A, N> Default for NetMatrixFormatter<P, T, A, N>
where P: Place, T: Transition, A: Arc, N: Net<Place = P, Transition = T, Arc = A>,

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<P, T, A, N> NetFormatter for NetMatrixFormatter<P, T, A, N>
where P: Place, T: Transition, A: Arc, N: Net<Place = P, Transition = T, Arc = A>,

Source§

type Place = P

Source§

type Transition = T

Source§

type Arc = A

Source§

type Net = N

Source§

fn fmt_net<W: Write>(&self, w: &mut W, net: &Self::Net) -> Result<(), Error>

Format the given net.

Auto Trait Implementations§

§

impl<P, T, A, N> Freeze for NetMatrixFormatter<P, T, A, N>

§

impl<P, T, A, N> RefUnwindSafe for NetMatrixFormatter<P, T, A, N>
where N: RefUnwindSafe,

§

impl<P, T, A, N> Send for NetMatrixFormatter<P, T, A, N>
where N: Send,

§

impl<P, T, A, N> Sync for NetMatrixFormatter<P, T, A, N>
where N: Sync,

§

impl<P, T, A, N> Unpin for NetMatrixFormatter<P, T, A, N>
where N: Unpin,

§

impl<P, T, A, N> UnwindSafe for NetMatrixFormatter<P, T, A, N>
where N: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.