Skip to main content

LazyHorizontalGridBuilder

Struct LazyHorizontalGridBuilder 

Source
pub struct LazyHorizontalGridBuilder { /* private fields */ }
Expand description

Configuration handle returned by lazy_horizontal_grid.

Implementations§

Source§

impl LazyHorizontalGridBuilder

Source

pub fn modifier(&self, value: Modifier) -> Self

Configure modifier before this component executes.

Source

pub fn modifier_optional(&self, value: Option<Modifier>) -> Self

Configure modifier before this component executes.

Source

pub fn scroll_smoothing(&self, value: f32) -> Self

Configure scroll_smoothing before this component executes.

Source

pub fn scroll_smoothing_optional(&self, value: Option<f32>) -> Self

Configure scroll_smoothing before this component executes.

Source

pub fn scrollbar_behavior(&self, value: ScrollBarBehavior) -> Self

Configure scrollbar_behavior before this component executes.

Source

pub fn scrollbar_behavior_optional( &self, value: Option<ScrollBarBehavior>, ) -> Self

Configure scrollbar_behavior before this component executes.

Source

pub fn scrollbar_track_color(&self, value: Color) -> Self

Configure scrollbar_track_color before this component executes.

Source

pub fn scrollbar_track_color_optional(&self, value: Option<Color>) -> Self

Configure scrollbar_track_color before this component executes.

Source

pub fn scrollbar_thumb_color(&self, value: Color) -> Self

Configure scrollbar_thumb_color before this component executes.

Source

pub fn scrollbar_thumb_color_optional(&self, value: Option<Color>) -> Self

Configure scrollbar_thumb_color before this component executes.

Source

pub fn scrollbar_thumb_hover_color(&self, value: Color) -> Self

Configure scrollbar_thumb_hover_color before this component executes.

Source

pub fn scrollbar_thumb_hover_color_optional(&self, value: Option<Color>) -> Self

Configure scrollbar_thumb_hover_color before this component executes.

Source

pub fn scrollbar_layout(&self, value: ScrollBarLayout) -> Self

Configure scrollbar_layout before this component executes.

Source

pub fn scrollbar_layout_optional(&self, value: Option<ScrollBarLayout>) -> Self

Configure scrollbar_layout before this component executes.

Source

pub fn rows(&self, value: GridCells) -> Self

Configure rows before this component executes.

Source

pub fn rows_optional(&self, value: Option<GridCells>) -> Self

Configure rows before this component executes.

Source

pub fn main_axis_spacing(&self, value: Dp) -> Self

Configure main_axis_spacing before this component executes.

Source

pub fn main_axis_spacing_optional(&self, value: Option<Dp>) -> Self

Configure main_axis_spacing before this component executes.

Source

pub fn cross_axis_spacing(&self, value: Dp) -> Self

Configure cross_axis_spacing before this component executes.

Source

pub fn cross_axis_spacing_optional(&self, value: Option<Dp>) -> Self

Configure cross_axis_spacing before this component executes.

Source

pub fn cross_axis_alignment(&self, value: MainAxisAlignment) -> Self

Configure cross_axis_alignment before this component executes.

Source

pub fn cross_axis_alignment_optional( &self, value: Option<MainAxisAlignment>, ) -> Self

Configure cross_axis_alignment before this component executes.

Source

pub fn item_alignment(&self, value: CrossAxisAlignment) -> Self

Configure item_alignment before this component executes.

Source

pub fn item_alignment_optional(&self, value: Option<CrossAxisAlignment>) -> Self

Configure item_alignment before this component executes.

Source

pub fn overscan(&self, value: usize) -> Self

Configure overscan before this component executes.

Source

pub fn overscan_optional(&self, value: Option<usize>) -> Self

Configure overscan before this component executes.

Source

pub fn estimated_item_size(&self, value: Dp) -> Self

Configure estimated_item_size before this component executes.

Source

pub fn estimated_item_size_optional(&self, value: Option<Dp>) -> Self

Configure estimated_item_size before this component executes.

Source

pub fn content_padding(&self, value: Dp) -> Self

Configure content_padding before this component executes.

Source

pub fn content_padding_optional(&self, value: Option<Dp>) -> Self

Configure content_padding before this component executes.

Source

pub fn max_viewport_main(&self, value: Px) -> Self

Configure max_viewport_main before this component executes.

Source

pub fn max_viewport_main_optional(&self, value: Option<Px>) -> Self

Configure max_viewport_main before this component executes.

Source

pub fn controller(&self, value: State<LazyGridController>) -> Self

Configure controller before this component executes.

Source

pub fn controller_optional( &self, value: Option<State<LazyGridController>>, ) -> Self

Configure controller before this component executes.

Source§

impl LazyHorizontalGridBuilder

Source

pub fn item<F, Output>(&self, builder: F) -> Self
where F: Fn() -> Output + Send + Sync + 'static,

Append a single lazy item.

Source

pub fn item_with_key<K, F, Output>(&self, key: K, builder: F) -> Self
where K: Hash, F: Fn() -> Output + Send + Sync + 'static,

Append a single lazy item with a stable key.

Source

pub fn items<F, Output>(&self, count: usize, builder: F) -> Self
where F: Fn(usize) -> Output + Send + Sync + 'static,

Append a batch of indexed lazy items.

Source

pub fn items_with_key<K, KF, F, Output>( &self, count: usize, key_provider: KF, builder: F, ) -> Self
where K: Hash, KF: Fn(usize) -> K + Send + Sync + 'static, F: Fn(usize) -> Output + Send + Sync + 'static,

Append indexed lazy items with stable keys.

Source

pub fn items_from_iter<I, T, F, Output>(&self, iter: I, builder: F) -> Self
where I: IntoIterator<Item = T>, T: Send + Sync + 'static, F: Fn(usize, &T) -> Output + Send + Sync + 'static,

Append lazy items from an iterator, exposing index and element.

Source

pub fn items_from_iter_with_key<I, T, K, KF, F, Output>( &self, iter: I, key_provider: KF, builder: F, ) -> Self
where I: IntoIterator<Item = T>, T: Send + Sync + 'static, K: Hash, KF: Fn(usize, &T) -> K + Send + Sync + 'static, F: Fn(usize, &T) -> Output + Send + Sync + 'static,

Append lazy items from an iterator with stable keys.

Source

pub fn items_from_iter_values<I, T, F, Output>( &self, iter: I, builder: F, ) -> Self
where I: IntoIterator<Item = T>, T: Send + Sync + 'static, F: Fn(&T) -> Output + Send + Sync + 'static,

Append lazy items from an iterator when only the element is used.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<T> Downcast for T
where T: Any,

§

fn into_any(self: Box<T>) -> Box<dyn Any>

Convert Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.
§

fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>

Convert Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be further downcast into Rc<ConcreteType> where ConcreteType implements Trait.
§

fn as_any(&self) -> &(dyn Any + 'static)

Convert &Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &Any’s vtable from &Trait’s.
§

fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)

Convert &mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &mut Any’s vtable from &mut Trait’s.
§

impl<T> Downcast for T
where T: Any,

§

fn into_any(self: Box<T>) -> Box<dyn Any>

Converts Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.
§

fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>

Converts Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further downcast into Rc<ConcreteType> where ConcreteType implements Trait.
§

fn as_any(&self) -> &(dyn Any + 'static)

Converts &Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &Any’s vtable from &Trait’s.
§

fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)

Converts &mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &mut Any’s vtable from &mut Trait’s.
§

impl<T> Downcast<T> for T

§

fn downcast(&self) -> &T

§

impl<T> DowncastSend for T
where T: Any + Send,

§

fn into_any_send(self: Box<T>) -> Box<dyn Any + Send>

Converts Box<Trait> (where Trait: DowncastSend) to Box<dyn Any + Send>, which can then be downcast into Box<ConcreteType> where ConcreteType implements Trait.
§

impl<T> DowncastSync for T
where T: Any + Send + Sync,

§

fn into_any_arc(self: Arc<T>) -> Arc<dyn Any + Send + Sync> ⓘ

Convert Arc<Trait> (where Trait: Downcast) to Arc<Any>. Arc<Any> can then be further downcast into Arc<ConcreteType> where ConcreteType implements Trait.
§

impl<T> DowncastSync for T
where T: Any + Send + Sync,

§

fn into_any_sync(self: Box<T>) -> Box<dyn Any + Send + Sync>

Converts Box<Trait> (where Trait: DowncastSync) to Box<dyn Any + Send + Sync>, which can then be downcast into Box<ConcreteType> where ConcreteType implements Trait.
§

fn into_any_arc(self: Arc<T>) -> Arc<dyn Any + Send + Sync> ⓘ

Converts Arc<Trait> (where Trait: DowncastSync) to Arc<Any>, which can then be downcast into Arc<ConcreteType> where ConcreteType implements Trait.
§

impl<T> ErasedDestructor for T
where T: 'static,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T, W> HasTypeWitness<W> for T
where W: MakeTypeWitness<Arg = T>, T: ?Sized,

§

const WITNESS: W = W::MAKE

A constant of the type witness
§

impl<T> Identity for T
where T: ?Sized,

§

const TYPE_EQ: TypeEq<T, <T as Identity>::Type> = TypeEq::NEW

Proof that Self is the same type as Self::Type, provides methods for casting between Self and Self::Type.
§

type Type = T

The same type as Self, used to emulate type equality bounds (T == U) with associated type equality constraints (T: Identity<Type = U>).
§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
§

impl<T> SendSync for T
where T: Send + Sync + 'static,

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<T> Upcast<T> for T

§

fn upcast(&self) -> Option<&T>

§

impl<T> WasmNotSend for T
where T: Send,

§

impl<T> WasmNotSendSync for T
where T: WasmNotSend + WasmNotSync,

§

impl<T> WasmNotSync for T
where T: Sync,

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more