pub struct CodeScroll {
pub offset_px: f64,
}Expand description
How far an editor is scrolled.
Fields§
§offset_px: f64The physical pixels of the document above the top of the view. The unit
Batch::set_scroll_offset takes.
Trait Implementations§
Source§impl Clone for CodeScroll
impl Clone for CodeScroll
impl Copy for CodeScroll
Source§impl Debug for CodeScroll
impl Debug for CodeScroll
Source§impl PartialEq for CodeScroll
impl PartialEq for CodeScroll
impl StructuralPartialEq for CodeScroll
Auto Trait Implementations§
impl Forget for CodeScroll
impl Freeze for CodeScroll
impl Move for CodeScroll
impl RefUnwindSafe for CodeScroll
impl Send for CodeScroll
impl Sync for CodeScroll
impl Unpin for CodeScroll
impl UnsafeUnpin for CodeScroll
impl UnwindSafe for CodeScroll
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