pub enum ScrollLocation {
Line {
line: i32,
},
Rectangle {
top_left: Point2<i32>,
bottom_right: Point2<i32>,
},
}
Variants§
Trait Implementations§
Source§impl Clone for ScrollLocation
impl Clone for ScrollLocation
Source§fn clone(&self) -> ScrollLocation
fn clone(&self) -> ScrollLocation
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 ScrollLocation
impl Debug for ScrollLocation
Source§impl<'de> Deserialize<'de> for ScrollLocation
impl<'de> Deserialize<'de> for ScrollLocation
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
Source§impl Hash for ScrollLocation
impl Hash for ScrollLocation
Source§impl Ord for ScrollLocation
impl Ord for ScrollLocation
Source§fn cmp(&self, other: &ScrollLocation) -> Ordering
fn cmp(&self, other: &ScrollLocation) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ScrollLocation
impl PartialEq for ScrollLocation
Source§impl PartialOrd for ScrollLocation
impl PartialOrd for ScrollLocation
Source§impl Serialize for ScrollLocation
impl Serialize for ScrollLocation
impl Eq for ScrollLocation
impl StructuralPartialEq for ScrollLocation
Auto Trait Implementations§
impl Freeze for ScrollLocation
impl RefUnwindSafe for ScrollLocation
impl Send for ScrollLocation
impl Sync for ScrollLocation
impl Unpin for ScrollLocation
impl UnwindSafe for ScrollLocation
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