Enum rat_widget::scrolled::HScrollPosition
source · pub enum HScrollPosition {
Top,
Bottom,
}Expand description
Position of the horizontal scrollbar.
Variants§
Implementations§
source§impl HScrollPosition
impl HScrollPosition
sourcepub fn orientation(&self) -> ScrollbarOrientation
pub fn orientation(&self) -> ScrollbarOrientation
Convert to ScrollbarOrientation.
Trait Implementations§
source§impl Clone for HScrollPosition
impl Clone for HScrollPosition
source§fn clone(&self) -> HScrollPosition
fn clone(&self) -> HScrollPosition
Returns a copy 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 HScrollPosition
impl Debug for HScrollPosition
source§impl Default for HScrollPosition
impl Default for HScrollPosition
source§fn default() -> HScrollPosition
fn default() -> HScrollPosition
Returns the “default value” for a type. Read more
source§impl PartialEq for HScrollPosition
impl PartialEq for HScrollPosition
source§fn eq(&self, other: &HScrollPosition) -> bool
fn eq(&self, other: &HScrollPosition) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Copy for HScrollPosition
impl Eq for HScrollPosition
impl StructuralPartialEq for HScrollPosition
Auto Trait Implementations§
impl Freeze for HScrollPosition
impl RefUnwindSafe for HScrollPosition
impl Send for HScrollPosition
impl Sync for HScrollPosition
impl Unpin for HScrollPosition
impl UnwindSafe for HScrollPosition
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
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more