pub struct ScrollbarState { /* private fields */ }Implementations§
Source§impl ScrollbarState
impl ScrollbarState
pub const fn new(content_length: usize) -> Self
pub const fn content_length(self, content_length: usize) -> Self
pub const fn content_length_value(&self) -> usize
pub const fn get_position(&self) -> usize
pub const fn viewport_content_length_value(&self) -> usize
pub const fn with_content_length(self, content_length: usize) -> Self
pub const fn with_position(self, position: usize) -> Self
pub const fn with_viewport_content_length( self, viewport_content_length: usize, ) -> Self
pub const fn position(self, position: usize) -> Self
pub const fn viewport_content_length( self, viewport_content_length: usize, ) -> Self
pub const fn content_length_mut(&mut self) -> &mut usize
pub const fn position_mut(&mut self) -> &mut usize
pub const fn viewport_content_length_mut(&mut self) -> &mut usize
pub const fn prev(&mut self)
pub fn next(&mut self)
pub const fn first(&mut self)
pub const fn last(&mut self)
pub fn scroll(&mut self, direction: ScrollDirection)
Trait Implementations§
Source§impl Clone for ScrollbarState
impl Clone for ScrollbarState
Source§fn clone(&self) -> ScrollbarState
fn clone(&self) -> ScrollbarState
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ScrollbarState
impl Debug for ScrollbarState
Source§impl Default for ScrollbarState
impl Default for ScrollbarState
Source§fn default() -> ScrollbarState
fn default() -> ScrollbarState
Returns the “default value” for a type. Read more
Source§impl Hash for ScrollbarState
impl Hash for ScrollbarState
Source§impl PartialEq for ScrollbarState
impl PartialEq for ScrollbarState
impl Copy for ScrollbarState
impl Eq for ScrollbarState
impl StructuralPartialEq for ScrollbarState
Auto Trait Implementations§
impl Freeze for ScrollbarState
impl RefUnwindSafe for ScrollbarState
impl Send for ScrollbarState
impl Sync for ScrollbarState
impl Unpin for ScrollbarState
impl UnsafeUnpin for ScrollbarState
impl UnwindSafe for ScrollbarState
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