Struct view::RenderContext
source · [−]pub struct RenderContext { /* private fields */ }Expand description
Represents data associated with rendering content.
Implementations
sourceimpl RenderContext
impl RenderContext
sourcepub const fn new(width: u16, height: u16) -> Self
pub const fn new(width: u16, height: u16) -> Self
Create a new instance with a width and height.
sourcepub const fn is_minimum_view_width(&self) -> bool
pub const fn is_minimum_view_width(&self) -> bool
Is the terminal window width at least the minimal supported width.
sourcepub const fn is_minimum_view_height(&self) -> bool
pub const fn is_minimum_view_height(&self) -> bool
Is the terminal window height at least the minimal supported height.
sourcepub const fn is_full_width(&self) -> bool
pub const fn is_full_width(&self) -> bool
Is the terminal window large enough to render lines using their full width.
sourcepub const fn is_window_too_small(&self) -> bool
pub const fn is_window_too_small(&self) -> bool
Is the terminal window too small to render content.
Trait Implementations
sourceimpl Clone for RenderContext
impl Clone for RenderContext
sourcefn clone(&self) -> RenderContext
fn clone(&self) -> RenderContext
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for RenderContext
impl Debug for RenderContext
impl Copy for RenderContext
Auto Trait Implementations
impl RefUnwindSafe for RenderContext
impl Send for RenderContext
impl Sync for RenderContext
impl Unpin for RenderContext
impl UnwindSafe for RenderContext
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more