pub struct CellPixels {
pub width: u16,
pub height: u16,
}Expand description
The size of one terminal cell in pixels.
Fields§
§width: u16§height: u16Implementations§
Source§impl CellPixels
impl CellPixels
Sourcepub fn new(width: u16, height: u16) -> Option<CellPixels>
pub fn new(width: u16, height: u16) -> Option<CellPixels>
A cell size, or None when either side is zero.
Sourcepub fn from_window(pixels: (u16, u16), cells: (u16, u16)) -> Option<CellPixels>
pub fn from_window(pixels: (u16, u16), cells: (u16, u16)) -> Option<CellPixels>
The cell size a window of pixels across cells implies.
Sourcepub fn parse(value: &str) -> Option<CellPixels>
pub fn parse(value: &str) -> Option<CellPixels>
Parse WIDTHxHEIGHT, as 8x16.
Trait Implementations§
Source§impl Clone for CellPixels
impl Clone for CellPixels
impl Copy for CellPixels
Source§impl Debug for CellPixels
impl Debug for CellPixels
Source§impl Display for CellPixels
impl Display for CellPixels
impl Eq for CellPixels
Source§impl Hash for CellPixels
impl Hash for CellPixels
Source§impl PartialEq for CellPixels
impl PartialEq for CellPixels
Source§impl Serialize for CellPixels
impl Serialize for CellPixels
impl StructuralPartialEq for CellPixels
Auto Trait Implementations§
impl Freeze for CellPixels
impl RefUnwindSafe for CellPixels
impl Send for CellPixels
impl Sync for CellPixels
impl Unpin for CellPixels
impl UnsafeUnpin for CellPixels
impl UnwindSafe for CellPixels
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
Fallible version of
ToCompactString::to_compact_string() Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a
CompactString. Read more