Struct taffy::compute::grid::track_sizing::ItemBatcher
source · struct ItemBatcher {
axis: AbstractAxis,
index_offset: usize,
current_span: u16,
current_is_flex: bool,
}
Expand description
Takes an axis, and a list of grid items sorted firstly by whether they cross a flex track in the specified axis (items that don’t cross a flex track first) and then by the number of tracks they cross in specified axis (ascending order).
Fields§
§axis: AbstractAxis
The axis in which the ItemBatcher is operating. Used when querying properties from items.
index_offset: usize
The starting index of the current batch
current_span: u16
The span of the items in the current batch
current_is_flex: bool
Whether the current batch of items cross a flexible track
Implementations§
source§impl ItemBatcher
impl ItemBatcher
sourcefn new(axis: AbstractAxis) -> Self
fn new(axis: AbstractAxis) -> Self
Create a new ItemBatcher for the specified axis
Auto Trait Implementations§
impl Freeze for ItemBatcher
impl RefUnwindSafe for ItemBatcher
impl Send for ItemBatcher
impl Sync for ItemBatcher
impl Unpin for ItemBatcher
impl UnwindSafe for ItemBatcher
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