pub struct CinematicRon<S, P = ()>(/* private fields */);Expand description
The cinematic file (cinematic, .ron) of a game whose shots are S
and shared lists P, read as parse says: as written, before any
check. check checks it, with the cinematic’s file stem
(AssetPath::stem), the music and the game’s shots.
Implementations§
Source§impl<S, P> CinematicRon<S, P>
impl<S, P> CinematicRon<S, P>
Trait Implementations§
Source§impl<S, P> Debug for CinematicRon<S, P>
impl<S, P> Debug for CinematicRon<S, P>
Source§impl<S, P> Default for CinematicRon<S, P>
impl<S, P> Default for CinematicRon<S, P>
Source§impl<S: DeserializeOwned + 'static, P: DeserializeOwned + 'static> Format for CinematicRon<S, P>
impl<S: DeserializeOwned + 'static, P: DeserializeOwned + 'static> Format for CinematicRon<S, P>
Source§type Asset = CinematicFile<S, P>
type Asset = CinematicFile<S, P>
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<CinematicFile<S, P>, Vec<ContentError>>
fn decode( &self, file: &AssetPath, bytes: &[u8], _cx: &DecodeCx<'_>, ) -> Result<CinematicFile<S, P>, Vec<ContentError>>
Every problem found, each with file and place; never a panic.
Auto Trait Implementations§
impl<S, P> Freeze for CinematicRon<S, P>
impl<S, P> RefUnwindSafe for CinematicRon<S, P>
impl<S, P> Send for CinematicRon<S, P>
impl<S, P> Sync for CinematicRon<S, P>
impl<S, P> Unpin for CinematicRon<S, P>
impl<S, P> UnsafeUnpin for CinematicRon<S, P>
impl<S, P> UnwindSafe for CinematicRon<S, P>
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