pub struct ListBuildContext {
pub index: usize,
pub is_selected: bool,
pub scroll_axis: ScrollAxis,
pub cross_axis_size: u16,
}
Expand description
This structure holds information about the item’s position, selection status, scrolling behavior, and size along the cross axis.
Fields§
§index: usize
The position of the item in the list.
is_selected: bool
A boolean flag indicating whether the item is currently selected.
scroll_axis: ScrollAxis
Defines the axis along which the list can be scrolled.
cross_axis_size: u16
The size of the item along the cross axis.
Auto Trait Implementations§
impl Freeze for ListBuildContext
impl RefUnwindSafe for ListBuildContext
impl Send for ListBuildContext
impl Sync for ListBuildContext
impl Unpin for ListBuildContext
impl UnwindSafe for ListBuildContext
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<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