pub struct ItemsRepeater { /* private fields */ }Implementations§
Source§impl ItemsRepeater
impl ItemsRepeater
pub fn new() -> Self
pub fn item(self, key: impl Into<Key>, item: impl Into<View>) -> Self
pub fn items<T>(self, items: impl IntoIterator<Item = T>) -> Self
Sourcepub fn virtual_source(self, source: VirtualSource) -> Self
pub fn virtual_source(self, source: VirtualSource) -> Self
Uses an indexed source that constructs views only for realized items.
Trait Implementations§
Source§impl Clone for ItemsRepeater
impl Clone for ItemsRepeater
Source§fn clone(&self) -> ItemsRepeater
fn clone(&self) -> ItemsRepeater
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ItemsRepeater
impl Debug for ItemsRepeater
Source§impl Default for ItemsRepeater
impl Default for ItemsRepeater
Source§fn default() -> ItemsRepeater
fn default() -> ItemsRepeater
Returns the “default value” for a type. Read more
Source§impl From<ItemsRepeater> for View
impl From<ItemsRepeater> for View
Source§fn from(value: ItemsRepeater) -> Self
fn from(value: ItemsRepeater) -> Self
Converts to this type from the input type.
Source§impl LayoutControl for ItemsRepeater
impl LayoutControl for ItemsRepeater
fn width(self, value: impl Into<Option<f64>>) -> Selfwhere
Self: Sized,
fn height(self, value: impl Into<Option<f64>>) -> Selfwhere
Self: Sized,
fn min_width(self, value: impl Into<Option<f64>>) -> Selfwhere
Self: Sized,
fn max_width(self, value: impl Into<Option<f64>>) -> Selfwhere
Self: Sized,
fn min_height(self, value: impl Into<Option<f64>>) -> Selfwhere
Self: Sized,
fn max_height(self, value: impl Into<Option<f64>>) -> Selfwhere
Self: Sized,
fn opacity(self, value: impl Into<Option<f64>>) -> Selfwhere
Self: Sized,
fn horizontal_alignment(
self,
value: impl Into<Option<HorizontalAlignment>>,
) -> Selfwhere
Self: Sized,
fn vertical_alignment(self, value: impl Into<Option<VerticalAlignment>>) -> Selfwhere
Self: Sized,
fn margin(self, value: impl Into<Thickness>) -> Selfwhere
Self: Sized,
fn margin_optional<T>(self, value: Option<T>) -> Self
fn exit_transition(self, transition: ExitTransition) -> Selfwhere
Self: Sized,
Source§impl PartialEq for ItemsRepeater
impl PartialEq for ItemsRepeater
impl StructuralPartialEq for ItemsRepeater
Auto Trait Implementations§
impl !RefUnwindSafe for ItemsRepeater
impl !Send for ItemsRepeater
impl !Sync for ItemsRepeater
impl !UnwindSafe for ItemsRepeater
impl Freeze for ItemsRepeater
impl Unpin for ItemsRepeater
impl UnsafeUnpin for ItemsRepeater
Blanket Implementations§
Source§impl<T> AutomationExt for Twhere
T: LayoutControl,
impl<T> AutomationExt for Twhere
T: LayoutControl,
fn automation_name(self, value: impl Into<String>) -> Self
fn automation_id(self, value: impl Into<String>) -> Self
fn automation_heading_level(self, value: AutomationHeadingLevel) -> Self
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