pub struct SizeInfo {
pub width: f32,
pub height: f32,
pub cell_width: f32,
pub cell_height: f32,
pub padding_x: f32,
pub padding_y: f32,
pub dpr: f64,
}
Expand description
Terminal size info
Fields§
§width: f32
Terminal window width
height: f32
Terminal window height
cell_width: f32
Width of individual cell
cell_height: f32
Height of individual cell
padding_x: f32
Horizontal window padding
padding_y: f32
Horizontal window padding
dpr: f64
DPI factor of the current window
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SizeInfo
impl<'de> Deserialize<'de> for SizeInfo
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 Copy for SizeInfo
impl StructuralPartialEq for SizeInfo
Auto Trait Implementations§
impl Freeze for SizeInfo
impl RefUnwindSafe for SizeInfo
impl Send for SizeInfo
impl Sync for SizeInfo
impl Unpin for SizeInfo
impl UnwindSafe for SizeInfo
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)