pub struct GlyphTile {
pub glyphs: String,
pub fg: String,
pub bg: Option<String>,
}Expand description
One tile of a GlyphTiles.
Fields§
§glyphs: StringIts glyphs, side by side and centred.
fg: StringThe glyphs’ color, by its palette name.
bg: Option<String>The square’s color, by its palette name; None leaves it clear.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for GlyphTile
impl<'de> Deserialize<'de> for GlyphTile
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for GlyphTile
impl StructuralPartialEq for GlyphTile
Auto Trait Implementations§
impl Freeze for GlyphTile
impl RefUnwindSafe for GlyphTile
impl Send for GlyphTile
impl Sync for GlyphTile
impl Unpin for GlyphTile
impl UnsafeUnpin for GlyphTile
impl UnwindSafe for GlyphTile
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.