pub struct AudioManifestRon;Expand description
The audio manifest (audio-manifest, .ron), checked as
from_source says. Its sound files are named from its own folder and
read from the bundle beside it (audio/audio.ron names sfx/a.wav,
audio/sfx/a.wav). The music folder isn’t in the bundle, so its tracks
aren’t read here: a tool that can see the folder checks them with
from_source.
Trait Implementations§
Source§impl Clone for AudioManifestRon
impl Clone for AudioManifestRon
Source§fn clone(&self) -> AudioManifestRon
fn clone(&self) -> AudioManifestRon
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for AudioManifestRon
Source§impl Debug for AudioManifestRon
impl Debug for AudioManifestRon
Source§impl Default for AudioManifestRon
impl Default for AudioManifestRon
Source§fn default() -> AudioManifestRon
fn default() -> AudioManifestRon
Returns the “default value” for a type. Read more
impl Eq for AudioManifestRon
Source§impl Format for AudioManifestRon
impl Format for AudioManifestRon
Source§type Asset = AudioManifest
type Asset = AudioManifest
The kind it reads.
Source§fn id(&self) -> &'static str
fn id(&self) -> &'static str
Stable id, e.g.
"png", "tiled-tmx", "yarn": one per format
of a kind.Source§fn extensions(&self) -> &'static [&'static str]
fn extensions(&self) -> &'static [&'static str]
File extensions this format claims, lowercase, without the dot. A
format that only stands in another’s place (a one-bit picture at a
PNG’s path) claims none and is found by
sniff.Source§fn max_bytes(&self) -> usize
fn max_bytes(&self) -> usize
The most bytes it reads: a bigger file is refused before
decode sees it. DEFAULT_MAX_BYTES unless the
format says.Source§fn decode(
&self,
file: &AssetPath,
bytes: &[u8],
cx: &DecodeCx<'_>,
) -> Result<AudioManifest, Vec<ContentError>>
fn decode( &self, file: &AssetPath, bytes: &[u8], cx: &DecodeCx<'_>, ) -> Result<AudioManifest, Vec<ContentError>>
Every problem found, each with file and place; never a panic.
Source§impl PartialEq for AudioManifestRon
impl PartialEq for AudioManifestRon
impl StructuralPartialEq for AudioManifestRon
Auto Trait Implementations§
impl Freeze for AudioManifestRon
impl RefUnwindSafe for AudioManifestRon
impl Send for AudioManifestRon
impl Sync for AudioManifestRon
impl Unpin for AudioManifestRon
impl UnsafeUnpin for AudioManifestRon
impl UnwindSafe for AudioManifestRon
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