pub struct CreditsRon { /* private fields */ }Expand description
A credits file (credits, .ron), checked as from_source says,
its errors naming the game’s other files as Places does.
Implementations§
Trait Implementations§
Source§impl Clone for CreditsRon
impl Clone for CreditsRon
Source§fn clone(&self) -> CreditsRon
fn clone(&self) -> CreditsRon
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 moreSource§impl Debug for CreditsRon
impl Debug for CreditsRon
Source§impl Default for CreditsRon
impl Default for CreditsRon
impl Eq for CreditsRon
Source§impl Format for CreditsRon
impl Format for CreditsRon
Source§type Asset = CreditsFile
type Asset = CreditsFile
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<CreditsFile, Vec<ContentError>>
fn decode( &self, file: &AssetPath, bytes: &[u8], _cx: &DecodeCx<'_>, ) -> Result<CreditsFile, Vec<ContentError>>
Every problem found, each with file and place; never a panic.
Source§impl PartialEq for CreditsRon
impl PartialEq for CreditsRon
impl StructuralPartialEq for CreditsRon
Auto Trait Implementations§
impl Freeze for CreditsRon
impl RefUnwindSafe for CreditsRon
impl Send for CreditsRon
impl Sync for CreditsRon
impl Unpin for CreditsRon
impl UnsafeUnpin for CreditsRon
impl UnwindSafe for CreditsRon
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