pub struct Font8x16;
Expand description

8x16 pixel monospace font.

8x16 font spritemap screenshot

§Examples

See the module-level documentation for examples.

Trait Implementations§

source§

impl Clone for Font8x16

source§

fn clone(&self) -> Font8x16

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Font8x16

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for Font8x16

source§

fn default() -> Font8x16

Returns the “default value” for a type. Read more
source§

impl Font for Font8x16

source§

const FONT_IMAGE: &'static [u8] = b"\x00\x00\x00\x00\x18\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00f\x00\x18\x00\x000\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x18f\x00|\x0080\x0c0\x00\x00\x00\x00\x00\x008\x18||\x0c\xfe8\xfe||\x00\x00\x00\x00\x00<fl\xc6\x00l0\x18\x18\x00\x00\x00\x00\x00\x00l8\xc6\xc6\x1c\xc0`\xc6\xc6\xc6\x00\x00\x06\x00\x00<$l\xc2\xc2l`0\x0c\x00\x00\x00\x00\x00\x02\xc6x\x06\x06<\xc0\xc0\x06\xc6\xc6\x18\x18\x0c\x00\x00<\x00\xfe\xc0\xc68\x000\x0cf\x18\x00\x00\x00\x06\xc6\x18\x0c\x06l\xc0\xc0\x06\xc6\xc6\x18\x18\x18~\x00\x18\x00l|\x0cv\x000\x0c<\x18\x00\x00\x00\x0c\xc6\x18\x18<\xcc\xfc\xfc\x0c|~\x00\x000\x00\x00\x18\x00l\x06\x18\xdc\x000\x0c\xff~\x00\xfe\x00\x18\xc6\x180\x06\xfe\x06\xc6\x18\xc6\x06\x00\x00`\x00\x00\x18\x00l\x060\xcc\x000\x0c<\x18\x00\x00\x000\xc6\x18`\x06\x0c\x06\xc60\xc6\x06\x00\x000~\x00\x00\x00\xfe\x86`\xcc\x000\x0cf\x18\x18\x00\x00`\xc6\x18\xc0\x06\x0c\x06\xc60\xc6\x06\x18\x18\x18\x00\x00\x18\x00l\xc6\xc6\xcc\x00\x18\x18\x00\x00\x18\x00\x18\xc0l\x18\xc6\xc6\x0c\xc6\xc60\xc6\x0c\x18\x18\x0c\x00\x00\x18\x00l|\x86v\x00\x0c0\x00\x00\x18\x00\x18\x808~\xfe|\x1e||0|x\x000\x06\x00\x00\x00\x00\x00\x18\x00\x00\x00\x00\x00\x00\x000\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x18\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00|\x00\x10\xfc<\xf8\xfe\xfe<\xc6<\x1e\xe6\xf0\xc6\xc6|\xfc|\xfc|~\xc6\xc6\xc6\xc6f\xfe<`\xc6|8fflfff\xc6\x18\x0cf`\xee\xe6\xc6f\xc6f\xc6~\xc6\xc6\xc6\xc6f\xc600\xc6\xc6lf\xc2fbb\xc2\xc6\x18\x0cf`\xfe\xf6\xc6f\xc6f\xc6Z\xc6\xc6\xc6lf\x860\x18\x0c\xc6\xc6f\xc0fhh\xc0\xc6\x18\x0cl`\xfe\xfe\xc6f\xc6f`\x18\xc6\xc6\xc6|f\x0c0\x0c\x18\xde\xc6|\xc0fxx\xc0\xfe\x18\x0cx`\xd6\xde\xc6|\xc6|8\x18\xc6\xc6\xd68<\x180\x06\x18\xde\xfef\xc0fhh\xde\xc6\x18\x0cx`\xc6\xce\xc6`\xc6l\x0c\x18\xc6\xc6\xd68\x1800\x0c\x18\xde\xc6f\xc0f``\xc6\xc6\x18\xccl`\xc6\xc6\xc6`\xc6f\x06\x18\xc6\xc6\xd6|\x18`0\x18\x00\xdc\xc6f\xc2fb`\xc6\xc6\x18\xccfb\xc6\xc6\xc6`\xd6f\xc6\x18\xc6l\xfel\x18\xc200\x18\xc0\xc6fflf`f\xc6\x18\xccff\xc6\xc6\xc6`\xdef\xc6\x18\xc68\xee\xc6\x18\xc60`\x18|\xc6\xfc<\xf8\xfe\xf0:\xc6<x\xe6\xfe\xc6\xc6|\xf0|\xe6|<|\x10l\xc6<\xfe<\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0e\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x10\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x008\x000\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00<l\x00\x18\x00\xe0\x00\x1c\x00\x1c\x00\xe0\x18\x06\xe08\x00\x00\x00\x00\x00\x00\x00\x10\x00\x00\x00\x00\x00\x80\x0c\xc6\x00\x0c\x00`\x00\x0c\x006\x00`\x18\x06`\x18\x00\x00\x00\x00\x00\x00\x000\x00\x00\x00\x00\x00\xc0\x0c\x00\x00\x00\x00`\x00\x0c\x002\x00`\x00\x00`\x18\x00\x00\x00\x00\x00\x00\x000\x00\x00\x00\x00\x00\xe0\x0c\x00\x00\x00xx|<|0vl8\x0ef\x18\xec\xdc|\xdcv\xdc|\xfc\xcc\xc6\xc6\xc6\xc6p\x0c\x00\x00\x00\x0cl\xc6l\xc6x\xccv\x18\x06l\x18\xfef\xc6f\xccv\xc60\xcc\xc6\xc6l\xc68\x0c\x00\x00\x00|f\xc0\xcc\xfe0\xccf\x18\x06x\x18\xd6f\xc6f\xccf`0\xcc\xc6\xd68\xc6\x1c\x0c\x00\x00\x00\xccf\xc0\xcc\xc00\xccf\x18\x06x\x18\xd6f\xc6f\xcc`80\xcc\xc6\xd68\xc6\x0e\x0c\x00\x00\x00\xccf\xc0\xcc\xc00\xccf\x18\x06l\x18\xd6f\xc6f\xcc`\x0c0\xcc\xc6\xd68\xc6\x06\x0c\x00\x00\x00\xccf\xc6\xcc\xc60\xccf\x18\x06f\x18\xd6f\xc6f\xcc`\xc66\xccl\xfel\xc6\x02<\x00\x00\x00v||v|x|\xe6<\x06\xe6<\xc6f|||\xf0|\x1cv8l\xc6~\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00f\x00\x00\x00\x00\x00`\x0c\x00\x00\x00\x00\x00\x00\x00\x06\x00\x00\x00\xff\x00\x00\x00\x00\x00\x00\x00\xcc\x00\x00f\x00\x00\x00\x00\x00`\x0c\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00x\x00\x00<\x00\x00\x00\x00\x00\xf0\x1e\x00\x00\x00\x00\x00\x00\x00\xf8\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xfe\x00\x00xx\x00\x00\x00\x00\x00`\x00\x00\x00\x00v\x00\x00\x00\x00\x00\x00\x00\xc6\x00\x00\x00\x00\x00\x00\x00p\x00\x8c\x8c\x0e\x00\x00\x00\x00\xe0\x00\x0e\x18p\xdc\x18\x00\x1c\x00f\x18<\xc6\x00p\x00\x00\x00\x00\x00\xd8\x00\x0c\x0c\x18\x00~\x00\x00`\x00\x18\x18\x18\x00\x18\x100\x00<\x18d\x00\x00\x08\x00\x00\x00\x00\x00\x88\x00\x18x \x00\xd4\x00\x00`\x00\x18\x18\x18\x00\x00\x100B\x18\x18`\x00~x\x00\x00\x00|\x00\xd8\x100\x0c\x00\x00\xd4\x00\x00`\xfe\x18\x18\x18\x00\x18|0<~\x188\x00B\x886\x00\x00D\x00p\x10`\x8c\x00f\xd4\x00\x00`\xccp\x18\x0e\x00\x18\xd0x$\x18\x00D\x00Z\x88l\x00\x00T\x00\x00|\xfcx\x00ft8\x00\xf0\x18\x18\x18\x18\x00\x18\xd00$\x18\x00D\x00^t\xd8\xfc|D\x00\x00\x10\x00\x00\x00f\x148\x00\x000\x18\x18\x18\x00<\xd00<~\x188\x00Z\x00l\x04\x00L\x00\x00\x10\x00\x00\x00f\x148\x00\x00`\x18\x18\x18\x00<\xd00B\x18\x18\x0c\x00B\x006\x04\x00T\x00\x00\x00\x00\x00\x00f\x14\x00\x00\x00\xc6\x18\x18\x18\x00<\xd62\x00\x18\x18L\x00~\x00\x00\x00\x00|\x00\x00|\x00\x00\x00f\x14\x00\x00\x00\xfe\x0e\x18p\x00\x18|\\\x00\x18\x18x\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00|>\x00\x00\x00\x00\x00\x00\x00\x00\x00\x10\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00`\x00\x00\x18\x00\x00\x00\x00\x00\x00\x00\x10\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00`\x00\x000\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xc0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00p\x1c8v\xc6\x10\x00\x00p\x1c8\xc6p\x1c8\xc6\x00vp\x1c8v\xc6\x00\x00\x00\x00\x00\x00\x00\x180l\xdc\xc6(\x00\x00\x180l\xc6\x180l\xc6\x00\xdc\x180l\xdc\xc6\x00<\x00@@\xc00\x00\x00\x00\x00\x00\x10\x1e<\x00\x00\x00\x00\x00\x00\x00\x00\xfc\x00\x00\x00\x00\x00\x00\x00f\x00\xc0\xc0 088888\x00zf\xfe\xfe\xfe\xfe<<<<f\xc6|||||\x00f\x00DDD\x00lllll|\xd8\xc2ffff\x18\x18\x18\x18f\xe6\xc6\xc6\xc6\xc6\xc6\x00f\xd8HH(0\xc6\xc6\xc6\xc6\xc6\xc6\xd8\xc0bbbb\x18\x18\x18\x18f\xf6\xc6\xc6\xc6\xc6\xc6f<l\x10\x10\xd00\xc6\xc6\xc6\xc6\xc6\xc6\xd8\xc0hhhh\x18\x18\x18\x18\xf6\xfe\xc6\xc6\xc6\xc6\xc6<\x006$,$0\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xc0xxxx\x18\x18\x18\x18\xf6\xde\xc6\xc6\xc6\xc6\xc6\x18\x00lLRL`\xc6\xc6\xc6\xc6\xc6\xc6\xd8\xc0hhhh\x18\x18\x18\x18f\xce\xc6\xc6\xc6\xc6\xc6<\x00\xd8\x94\x84\x94\xc6\xc6\xc6\xc6\xc6\xc6\xc6\xd8\xc2bbbb\x18\x18\x18\x18f\xc6\xc6\xc6\xc6\xc6\xc6f\x00\x00\x1e\x08\x1e\xc6\xc6\xc6\xc6\xc6\xc6\xc6\xdafffff\x18\x18\x18\x18f\xc6\xc6\xc6\xc6\xc6\xc6\x00\x00\x00\x04\x1e\x04|\xc6\xc6\xc6\xc6\xc6\xc6\xde<\xfe\xfe\xfe\xfe<<<<\xfc\xc6|||||\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x18\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x000\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00p\x1c8\xc6\x1c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x180l\xc60\x00\x00\x00\x00\x10v\xc60\x00\x00\x00\x00\x10\xc6\x00\x00\x10\xc6\x00v\x00\x00\x10v|\x00\x00\x00\x00f\xf08p\x1c8\xdc\xc6H\x00\x00p\x1c8\xc6p\x1c8\xc6\xd0\xdcp\x1c8\xdc\xc6\xc6\xc6\xc6\xc6f`l\x180l\x00\x000\x00\x00\x180l\x00\x180l\x00`\x00\x180l\x00\xce\xc6\xc6\xc6\xc6f|l\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb0\x00\x00\x00\x00\x00\xce\xc6\xc6\xc6\xc6fflxxxxxx\xcc|||||8888\x18\xdc||||\xd6\xc6\xc6\xc6\xc6<fx\x0c\x0c\x0c\x0c\x0c\x0c2\xc6\xc6\xc6\xc6\xc6\x18\x18\x18\x18|f\xc6\xc6\xc6\xc6\xd6\xc6\xc6\xc6\xc6\x18fl||||||>\xc0\xfe\xfe\xfe\xfe\x18\x18\x18\x18\xc6f\xc6\xc6\xc6\xc6\xe6\xc6\xc6\xc6\xc6\x18ff\xcc\xcc\xcc\xcc\xcc\xccp\xc0\xc0\xc0\xc0\xc0\x18\x18\x18\x18\xc6f\xc6\xc6\xc6\xc6\xe6\xc6\xc6\xc6\xc6\x18|f\xcc\xcc\xcc\xcc\xcc\xcc\xb0\xc0\xc0\xc0\xc0\xc0\x18\x18\x18\x18\xc6f\xc6\xc6\xc6\xc6\xc6\xc6\xc6\xc6\xc6\x18`f\xcc\xcc\xcc\xcc\xcc\xcc\xb2\xc6\xc6\xc6\xc6\xc6\x18\x18\x18\x18\xc6f\xc6\xc6\xc6\xc6|||||<\xf0lvvvvvvl|||||<<<<|f||||\x00\x00\x00\x00\x00\x00\x00`\x00\x00\x00\x00\x00\x00\x00\x18\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xc0\x00\x00\x00\x00\x00\x00\x000\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xc6\x00\x00\x00\x00\x10\xc6\x00\x00\xc6\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xc6\x00\x00\x1cp8\xc6\x1c\xe0\xc6\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x000\x18l\x000`\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x18\x00\x00\x00\x00\x00\x00`\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00|\x18:\xcc\xcc\xcc\xcc\xc6x\xc6\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xc6\x00D\xcc\xcc\xcc\xcc\xc6l\xc6\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xc6~\xce\xcc\xcc\xcc\xcc\xc6l\xc6\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xc6\x00\xd6\xcc\xcc\xcc\xcc\xc6x\xc6\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xc6\x18\xe6\xcc\xcc\xcc\xcc\xc6`\xc6\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xc6\x18D\xcc\xcc\xcc\xcc\xc6`\xc6\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00|\x00\xb8vvvv~\xf0~\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x06\x00\x06\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x0c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xf8\x00\xf8\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"

Raw image data containing the font.
source§

const FONT_IMAGE_WIDTH: u32 = 240u32

The width of the raw image data. Read more
source§

const CHARACTER_SIZE: Size = _

Size of a single character in pixel.
source§

fn char_offset(c: char) -> u32

Returns the position a character in the font.
source§

const CHARACTER_SPACING: u32 = 0u32

Spacing between characters. Read more
source§

const VARIABLE_WIDTH: bool = false

Whether characters have a variable width or not. Read more
source§

fn char_width(c: char) -> u32

Returns the actual width of a character in the font.
source§

fn character_pixel(c: char, x: u32, y: u32) -> bool

Returns the value of a pixel in a character in the font.
source§

impl Hash for Font8x16

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl Ord for Font8x16

source§

fn cmp(&self, other: &Font8x16) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized + PartialOrd,

Restrict a value to a certain interval. Read more
source§

impl PartialEq for Font8x16

source§

fn eq(&self, other: &Font8x16) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialOrd for Font8x16

source§

fn partial_cmp(&self, other: &Font8x16) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl Copy for Font8x16

source§

impl Eq for Font8x16

source§

impl StructuralPartialEq for Font8x16

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.