pub struct OneBitInfo;Expand description
A one-bit picture in a PNG’s place, read for the size of the PNG it
was made from (one-bit), which ImageInfo::checked must allow. It
claims no extension: it is found by its magic bytes at a PNG’s path,
so a .1bit file beside a PNG (a touched-up picture a build reads) is
not an image of its own.
Trait Implementations§
Source§impl Clone for OneBitInfo
impl Clone for OneBitInfo
Source§fn clone(&self) -> OneBitInfo
fn clone(&self) -> OneBitInfo
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 OneBitInfo
Source§impl Debug for OneBitInfo
impl Debug for OneBitInfo
Source§impl Default for OneBitInfo
impl Default for OneBitInfo
Source§fn default() -> OneBitInfo
fn default() -> OneBitInfo
Returns the “default value” for a type. Read more
impl Eq for OneBitInfo
Source§impl Format for OneBitInfo
impl Format for OneBitInfo
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 sniff(&self, bytes: &[u8]) -> bool
fn sniff(&self, bytes: &[u8]) -> bool
True if these bytes look like this format (magic bytes);
false
when the format has none.Source§impl PartialEq for OneBitInfo
impl PartialEq for OneBitInfo
impl StructuralPartialEq for OneBitInfo
Auto Trait Implementations§
impl Freeze for OneBitInfo
impl RefUnwindSafe for OneBitInfo
impl Send for OneBitInfo
impl Sync for OneBitInfo
impl Unpin for OneBitInfo
impl UnsafeUnpin for OneBitInfo
impl UnwindSafe for OneBitInfo
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