pub struct PatternMapRon;Expand description
A pattern map file (pattern-map, .ron), read as
PatternMapDef::from_source says.
Trait Implementations§
Source§impl Clone for PatternMapRon
impl Clone for PatternMapRon
Source§fn clone(&self) -> PatternMapRon
fn clone(&self) -> PatternMapRon
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 PatternMapRon
Source§impl Debug for PatternMapRon
impl Debug for PatternMapRon
Source§impl Default for PatternMapRon
impl Default for PatternMapRon
Source§fn default() -> PatternMapRon
fn default() -> PatternMapRon
Returns the “default value” for a type. Read more
impl Eq for PatternMapRon
Source§impl Format for PatternMapRon
impl Format for PatternMapRon
Source§type Asset = PatternMapDef
type Asset = PatternMapDef
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<PatternMapDef, Vec<ContentError>>
fn decode( &self, file: &AssetPath, bytes: &[u8], _cx: &DecodeCx<'_>, ) -> Result<PatternMapDef, Vec<ContentError>>
Every problem found, each with file and place; never a panic.
Source§impl PartialEq for PatternMapRon
impl PartialEq for PatternMapRon
impl StructuralPartialEq for PatternMapRon
Auto Trait Implementations§
impl Freeze for PatternMapRon
impl RefUnwindSafe for PatternMapRon
impl Send for PatternMapRon
impl Sync for PatternMapRon
impl Unpin for PatternMapRon
impl UnsafeUnpin for PatternMapRon
impl UnwindSafe for PatternMapRon
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