Skip to main content

Resource

Derive Macro Resource 

Source
#[derive(Resource)]
Expand description

Derive the Resource marker trait, allowing this type to be stored in a World.

use nexus_rt::Resource;

#[derive(Resource)]
struct OrderBook {
    bids: Vec<(f64, f64)>,
    asks: Vec<(f64, f64)>,
}