Struct sauron_core::dom::cmd::Modifier[][src]

pub struct Modifier {
    pub should_update_view: bool,
    pub log_measurements: bool,
    pub measurement_name: String,
}
Expand description

These are collections of fields where we can modify the Cmd such as logging measurement or should update the view

Fields

should_update_view: bool

this instruct the program whether or not to update the view

log_measurements: bool

tell the cmd to log the measurements of not. set only to true for a certain MSG where you want to measure the performance in the component update function. Otherwise, measurement calls for other non-trivial functions are also called causing on measurements.

measurement_name: String

Set the measurement name for this Cmd. This is used to distinguish measurements from other measurements in different parts of you application

This measurment name will be copied into the Measurement passed in Application::measurement

Trait Implementations

Returns a copy of the value. Read more

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