Struct cosmic_text::Scroll
source · pub struct Scroll {
pub line: usize,
pub layout: i32,
}
Expand description
Scroll position in [Buffer
]
Fields§
§line: usize
Index of [BufferLine
] in [Buffer::lines
]. This will be adjusted as needed if layout is
out of bounds
layout: i32
Index of [LayoutLine
] in [BufferLine::layout
]. This will be adjusted as needed
if it is negative or exceeds the number of layout lines
Implementations§
Trait Implementations§
source§impl Ord for Scroll
impl Ord for Scroll
source§impl PartialEq for Scroll
impl PartialEq for Scroll
source§impl PartialOrd for Scroll
impl PartialOrd for Scroll
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for Scroll
impl Eq for Scroll
impl StructuralPartialEq for Scroll
Auto Trait Implementations§
impl RefUnwindSafe for Scroll
impl Send for Scroll
impl Sync for Scroll
impl Unpin for Scroll
impl UnwindSafe for Scroll
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