pub enum ScrollTarget {
Content(Rect),
Node(u32, Rect),
Item(u32, Rect),
}Expand description
What a ScrollIntoView rectangle is measured from.
Variants§
Content(Rect)
The container’s content: the origin is the content’s top left at offset zero. Not for a lazy list, which has no content coordinates.
Node(u32, Rect)
A descendant node of the container: the origin is that node’s top left, and a rectangle with no width and no height means the whole node.
Item(u32, Rect)
An item of a lazy list by its index: the origin is the item’s start, and a rectangle with no width and no height means the whole item.
Trait Implementations§
Source§impl Clone for ScrollTarget
impl Clone for ScrollTarget
impl Copy for ScrollTarget
Source§impl Debug for ScrollTarget
impl Debug for ScrollTarget
Source§impl PartialEq for ScrollTarget
impl PartialEq for ScrollTarget
impl StructuralPartialEq for ScrollTarget
Auto Trait Implementations§
impl Forget for ScrollTarget
impl Freeze for ScrollTarget
impl Move for ScrollTarget
impl RefUnwindSafe for ScrollTarget
impl Send for ScrollTarget
impl Sync for ScrollTarget
impl Unpin for ScrollTarget
impl UnsafeUnpin for ScrollTarget
impl UnwindSafe for ScrollTarget
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