pub struct Viewport {
pub top: u32,
pub rows: u32,
}Expand description
The scrolling rows of a scrolling surface that show now (viewport).
Fields§
§top: u32The first scrolling row in view, in the surface’s rows.
rows: u32How many scrolling rows show at once.
Trait Implementations§
impl Copy for Viewport
impl Eq for Viewport
impl StructuralPartialEq for Viewport
Auto Trait Implementations§
impl Forget for Viewport
impl Freeze for Viewport
impl Move for Viewport
impl RefUnwindSafe for Viewport
impl Send for Viewport
impl Sync for Viewport
impl Unpin for Viewport
impl UnsafeUnpin for Viewport
impl UnwindSafe for Viewport
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