Struct overclock::core::Data

source ·
pub struct Data<T: Resource> { /* private fields */ }
Expand description

Data for given T: resource, along with subscribers

Implementations§

Create new data from resource, used when the resource is created before it’s being requested. Resource publisher will invoke this method

Create data from subscriber, used when the resource is requested before it’s being created.

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.