Struct dvcompute_results::simulation::results::ResultContainer[][src]

pub struct ResultContainer<E> {
    pub name: ResultName,
    pub name_path: Vec<ResultName>,
    pub id: ResultId,
    pub id_path: Vec<ResultId>,
    pub data: Rc<E>,
    pub observable: Rc<dyn Fn() -> ResultObservable>,
}
Expand description

A container of the simulation results such as queue, facility or array.

Fields

name: ResultName

The container name.

name_path: Vec<ResultName>

The container name path.

id: ResultId

The container identifier.

id_path: Vec<ResultId>

The container identifier path.

data: Rc<E>

The container data.

observable: Rc<dyn Fn() -> ResultObservable>

Whether the container emits a signal when changing simulation data.

Implementations

Map the contained data by applying the corresponding function.

Create a new raw property source by the specified container.

Create a new raw property by the specified container.

Create a new constant property source by the specified container.

Create by the specified container a property that changes in the integration time points,

Create a new property by the specified container.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. 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)

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.