pub struct Pane {
pub cells: Rect,
pub cell: (u16, u16),
}Expand description
The pane the map goes in, in cells and in pixels.
Fields§
§cells: RectWhere the image goes, in terminal cells.
cell: (u16, u16)How many pixels one cell is, across and down.
Implementations§
Source§impl Pane
impl Pane
Sourcepub fn pixels(&self) -> Option<(u32, u32)>
pub fn pixels(&self) -> Option<(u32, u32)>
The pane’s size in pixels, or None if the terminal reports no pixel size.
A terminal that answers TIOCGWINSZ with zeros is one that does not know how big its
own cells are, and an image sized from a guess is an image that does not line up with
the text beside it.
Trait Implementations§
impl Copy for Pane
impl Eq for Pane
impl StructuralPartialEq for Pane
Auto Trait Implementations§
impl Freeze for Pane
impl RefUnwindSafe for Pane
impl Send for Pane
impl Sync for Pane
impl Unpin for Pane
impl UnsafeUnpin for Pane
impl UnwindSafe for Pane
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§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> 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