pub struct WorkspaceEventInfo {
    pub change: WorkspaceChange,
    pub current: Option<Node>,
    pub old: Option<Node>,
}
Expand description

Data for WorkspaceEvent.

Fields§

§change: WorkspaceChange

The type of change.

§current: Option<Node>

Will be Some if the type of event affects the workspace.

§old: Option<Node>

Will be Some only when change == Focus and there was a previous workspace. Note that if the previous workspace was empty it will get destroyed when switching, but will still appear here.

Trait Implementations§

Formats the value using the given formatter. Read more
The associated error which can be returned from parsing.
Parses a string s to return a value of this 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

Returns the argument unchanged.

Calls U::from(self).

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

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.