pub struct View<'a, T: ?Sized> { /* private fields */ }Expand description
Borrowed sub-rect over an existing surface.
Implementations§
Trait Implementations§
Source§impl<T: Bounded + ?Sized> Bounded for View<'_, T>
impl<T: Bounded + ?Sized> Bounded for View<'_, T>
Source§impl<T: SurfaceMut + ?Sized> SurfaceMut for View<'_, T>
impl<T: SurfaceMut + ?Sized> SurfaceMut for View<'_, T>
Source§fn set_cell(&mut self, pos: Position, cell: &Cell)
fn set_cell(&mut self, pos: Position, cell: &Cell)
Place
cell at pos. Implementations are responsible for
wide-cell semantics (continuation markers, blanking covered
cells) and any dirty tracking they care to do. Taking &Cell
lets implementations skip the clone when the destination
already matches. Read moreSource§fn clear(&mut self)
fn clear(&mut self)
Clear the entire surface bounds to
Cell::BLANK. Read moreSource§fn clear_rect(&mut self, rect: Rect)
fn clear_rect(&mut self, rect: Rect)
Clear a rectangle to
Cell::BLANK. Read moreSource§fn insert_lines(&mut self, y: u16, n: u16, bounds_bottom: u16, fill: &Cell)
fn insert_lines(&mut self, y: u16, n: u16, bounds_bottom: u16, fill: &Cell)
Insert
n blank rows at y, pushing existing rows down within
[y, bounds_bottom). Rows pushed past bounds_bottom are lost.
Freed top rows are filled with fill. Read moreSource§fn delete_lines(&mut self, y: u16, n: u16, bounds_bottom: u16, fill: &Cell)
fn delete_lines(&mut self, y: u16, n: u16, bounds_bottom: u16, fill: &Cell)
Delete
n rows at y, pulling existing rows up within
[y, bounds_bottom). The bottom n rows of the window are
filled with fill. Read moreAuto Trait Implementations§
impl<'a, T> Freeze for View<'a, T>where
T: ?Sized,
impl<'a, T> RefUnwindSafe for View<'a, T>where
T: RefUnwindSafe + ?Sized,
impl<'a, T> Send for View<'a, T>
impl<'a, T> Sync for View<'a, T>
impl<'a, T> Unpin for View<'a, T>where
T: ?Sized,
impl<'a, T> UnsafeUnpin for View<'a, T>where
T: ?Sized,
impl<'a, T> !UnwindSafe for View<'a, T>
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<S> Encode for S
impl<S> Encode for S
Source§fn encode<W: Write>(&self, w: &mut W) -> Result<()>
fn encode<W: Write>(&self, w: &mut W) -> Result<()>
Write the surface to
w as escape sequences and text. Read more