pub struct ScrollPos {
pub first_line: usize,
pub line_fraction: f32,
pub x_offset: f32,
}Fields§
§first_line: usize§line_fraction: f32Fraction of a line scrolled past first_line, 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