Struct pnets::standard::Place[][src]

pub struct Place {
    pub label: Option<String>,
    pub initial: usize,
    pub produced_by: Marking<TransitionId>,
    pub consumed_by: Marking<TransitionId>,
    pub deleted: bool,
    // some fields omitted
}
Expand description

Place with only producers and consumers

Fields

label: Option<String>

Label of the place

initial: usize

Initial value of the place

produced_by: Marking<TransitionId>

Transitions that produce this place

consumed_by: Marking<TransitionId>

Transitions that consume this place

deleted: bool

This place is disconnected from the network and only kept to avoid index problems

Implementations

Returns the id of the place

Returns true if this place is disconnected from the network

Generate a vector over all arcs connected to this place

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

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

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.