pub struct ScrollId(/* private fields */);Expand description
An opaque handle to a scroll container. The app keeps a scroll offset per id (adjusted by wheel events) and re-applies it each frame; the id is stable as long as the view registers scroll containers in the same order.
Trait Implementations§
impl Copy for ScrollId
impl Eq for ScrollId
impl StructuralPartialEq for ScrollId
Auto Trait Implementations§
impl Freeze for ScrollId
impl RefUnwindSafe for ScrollId
impl Send for ScrollId
impl Sync for ScrollId
impl Unpin for ScrollId
impl UnsafeUnpin for ScrollId
impl UnwindSafe for ScrollId
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