pub struct ScrollRect { /* private fields */ }
Available on crate features
experimental
and LayerTree
and DOM
only.Expand description
Rectangle where scrolling happens on the main thread.
Implementations§
Source§impl ScrollRect
impl ScrollRect
pub fn new(rect: Rect, type: ScrollRectType) -> Self
Sourcepub fn type(&self) -> &ScrollRectType
pub fn type(&self) -> &ScrollRectType
Reason for rectangle to force scrolling on the main thread
Trait Implementations§
Source§impl Clone for ScrollRect
impl Clone for ScrollRect
Source§fn clone(&self) -> ScrollRect
fn clone(&self) -> ScrollRect
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 ScrollRect
impl Debug for ScrollRect
Source§impl<'de> Deserialize<'de> for ScrollRect
impl<'de> Deserialize<'de> for ScrollRect
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
Auto Trait Implementations§
impl Freeze for ScrollRect
impl RefUnwindSafe for ScrollRect
impl Send for ScrollRect
impl Sync for ScrollRect
impl Unpin for ScrollRect
impl UnwindSafe for ScrollRect
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