pub struct NumberFont {
pub font: FontId,
pub cells: bool,
}Expand description
How a value is drawn at a size: the font, and whether its digits are laid in cells (a proportional face asked for numbers).
Fields§
§font: FontId§cells: boolEach digit in a cell as wide as the widest, right-aligned in it.
Trait Implementations§
Source§impl Clone for NumberFont
impl Clone for NumberFont
Source§fn clone(&self) -> NumberFont
fn clone(&self) -> NumberFont
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 NumberFont
impl Debug for NumberFont
Source§impl PartialEq for NumberFont
impl PartialEq for NumberFont
impl StructuralPartialEq for NumberFont
Auto Trait Implementations§
impl Freeze for NumberFont
impl RefUnwindSafe for NumberFont
impl Send for NumberFont
impl Sync for NumberFont
impl Unpin for NumberFont
impl UnsafeUnpin for NumberFont
impl UnwindSafe for NumberFont
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,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more