Struct armature::Store[][src]

pub struct Store<T, E> where
    T: Default + Clone + Debug,
    E: IsEvent<Event = E>, 
{ pub value: T, pub on_mutate: fn(_: &Self), // some fields omitted }

Fields

value: Ton_mutate: fn(_: &Self)

Implementations

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

The resulting type after dereferencing.

Dereferences the value.

Get a mutable reference to the event sender component.

Get an immutable reference to the event sender component.

Set the event sender component.

Get the event sender

Set the event sender

Clear the event sender

Get associated event handler id, this is the id of the event handler that owns the event sender. Read more

Get the associated event handler id.

Clear the associated event handler id.

Publish an event to all handlers.

Post an event to a specific handler.

Post an event to event handler to which the event sender is attached.

Send an envelope

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.