Struct unifont_bitmap::Bitmap[][src]

pub struct Bitmap<'a> { /* fields omitted */ }
Expand description

A single 8x16 or 16x16 bitmap, corresponding to a single displayed glyph. See the module documentation for a cryptic warning about combining characters, invisible characters, etc.

Implementations

Returns the bytes that make up the given bitmap. Each byte contains 8 pixels. The highest order bit of the byte is the leftmost pixel, the next highest order bit is the next pixel, and so on. If the glyph is wide (see is_wide) then there are two bytes per row, otherwise there is one byte per row.

Returns true if the bitmap is wide (16x16), false if it is narrow (8x16).

Returns the dimensions of the bitmap, width then height. Always returns (8,16) or (16,16).

Trait Implementations

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.