LinedFlowLayoutItemAspectRatios
struct · ferroui-controls-repeater · v0.5.0
struct LinedFlowLayoutItemAspectRatios
Bounded, block-based ratio history. Recycling always prefers an empty block, then the block whose midpoint is furthest from the new item.
Members
new
fn new() -> Self
block_count
fn block_count(self: &Self) -> usize
is_empty
fn is_empty(self: &Self) -> bool
has_lower_weight
fn has_lower_weight(self: &Self, first: i32, last: i32, weight: i32) -> bool
average_aspect_ratio
fn average_aspect_ratio(self: &Self, first: i32, last: i32, outside_weight: i32) -> f64
get_at
fn get_at(self: &Self, index: i32) -> ItemAspectRatio
set_at
fn set_at(self: &mut Self, index: i32, value: ItemAspectRatio)
clear
fn clear(self: &mut Self)
resize
fn resize(self: &mut Self, size: usize, reference_index: i32)
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>AnyClassDefaultsErasedDestructorIntoEitherDefault
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.