resource

Function resource 

Source
pub const fn resource<Content: ResourceType>(amount: u32) -> Resource<Content>
Expand description

Creates a new Resource with the specified amount. Should not be reexported in mods.