pub struct ScrollPos {
pub first_line: usize,
pub first_sub: usize,
pub line_fraction: f32,
pub x_offset: f32,
}Fields§
§first_line: usizeThe top row: first_sub is the row within first_line (see
crate::display).
first_sub: usize§line_fraction: f32Fraction of the top row scrolled past, in [0, 1).
x_offset: f32Horizontal offset in pixels.
Trait Implementations§
impl Copy for ScrollPos
Source§impl<'de> Deserialize<'de> for ScrollPos
impl<'de> Deserialize<'de> for ScrollPos
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 StructuralPartialEq for ScrollPos
Auto Trait Implementations§
impl Freeze for ScrollPos
impl RefUnwindSafe for ScrollPos
impl Send for ScrollPos
impl Sync for ScrollPos
impl Unpin for ScrollPos
impl UnsafeUnpin for ScrollPos
impl UnwindSafe for ScrollPos
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