pub struct DescribedChar {
pub base_char: LincolnChar,
pub unicode_representation: Option<char>,
pub attributes: LincolnState,
pub advance: bool,
pub label_matches_unicode: bool,
}
Fields§
§base_char: LincolnChar
The actual character we’re trying to print. The attributes
attribute specifies whether this is a subscript, superscript
or normal character, and what colour it is.
unicode_representation: Option<char>
If the character has a direct Unicode translation, that is in
unicode_representation
. Some characters, for example
superscript Y, have no Unicode representation.
attributes: LincolnState
Specifies whether the character is upper-case, lower-case (both as understood in terms of normal typography, i.e. “A” is upper-case), whether it is subscript, superscript, or normal, and what colour it is.
advance: bool
When advance is true
, printing this character should advance
the printing position.
label_matches_unicode: bool
Indicates whether the label on the Lincoln Writer keyboard is the same as the Unicode representation.
Trait Implementations§
Source§impl Clone for DescribedChar
impl Clone for DescribedChar
Source§fn clone(&self) -> DescribedChar
fn clone(&self) -> DescribedChar
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for DescribedChar
impl Debug for DescribedChar
Source§impl PartialEq for DescribedChar
impl PartialEq for DescribedChar
impl Copy for DescribedChar
impl Eq for DescribedChar
impl StructuralPartialEq for DescribedChar
Auto Trait Implementations§
impl Freeze for DescribedChar
impl RefUnwindSafe for DescribedChar
impl Send for DescribedChar
impl Sync for DescribedChar
impl Unpin for DescribedChar
impl UnwindSafe for DescribedChar
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<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.