pub struct Storage {
pub resources: HashMap<Resource, u32>,
pub future_resources: HashMap<Resource, u32>,
pub allowed_inputs: Option<HashSet<Resource>>,
pub capacity: u32,
}Fields§
§resources: HashMap<Resource, u32>§future_resources: HashMap<Resource, u32>§allowed_inputs: Option<HashSet<Resource>>resources that are allowed to be inserted into the structure. If none, accept all resources
capacity: u32Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Storage
impl RefUnwindSafe for Storage
impl Send for Storage
impl Sync for Storage
impl Unpin for Storage
impl UnwindSafe for Storage
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more