//! Asset loader helper.
pubmodogg;pubmodpng;pubmodron;usesuper::Id;/// How an asset should be loaded.
pubtraitLoader<T> {/// Extension for the file that this loader loads.
constEXTENSION:&'staticstr;/// Load an asset from raw bytes.
////// # Arguments
////// * `bytes` - Raw bytes from the file, could be loaded either from disk or from memory.
/// * `id` - ID of the asset to load, mainly used for printing somewhat useful panic messages.
////// # Panics
////// - When anything went wrong with loading the asset.
fnload(bytes:&[u8], id:&Id)-> T;}