Skip to main content

ListItemBuilder

Struct ListItemBuilder 

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

Configuration handle returned by list_item.

Implementations§

Source§

impl ListItemBuilder

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 enabled(&self, value: bool) -> Self

Configure enabled before this component executes.

Source

pub fn enabled_optional(&self, value: Option<bool>) -> Self

Configure enabled before this component executes.

Source

pub fn selected(&self, value: bool) -> Self

Configure selected before this component executes.

Source

pub fn selected_optional(&self, value: Option<bool>) -> Self

Configure selected before this component executes.

Source

pub fn selection_mode(&self, value: ListItemSelectionMode) -> Self

Configure selection_mode before this component executes.

Source

pub fn selection_mode_optional( &self, value: Option<ListItemSelectionMode>, ) -> Self

Configure selection_mode before this component executes.

Source

pub fn on_selection_change<F>(&self, value: F) -> Self
where F: Fn(bool) + Send + Sync + 'static,

Configure on_selection_change before this component executes.

Source

pub fn on_selection_change_shared( &self, value: impl Into<CallbackWith<bool>> + Send + Sync + 'static, ) -> Self

Configure on_selection_change before this component executes.

Source

pub fn on_selection_change_optional( &self, value: Option<CallbackWith<bool>>, ) -> Self

Configure on_selection_change before this component executes.

Source

pub fn headline(&self, value: impl Into<String>) -> Self

Configure headline before this component executes.

Source

pub fn headline_optional(&self, value: Option<String>) -> Self

Configure headline before this component executes.

Source

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

Configure content before this component executes.

Source

pub fn content_shared( &self, value: impl Into<RenderSlot> + Send + Sync + 'static, ) -> Self

Configure content before this component executes.

Source

pub fn content_optional(&self, value: Option<RenderSlot>) -> Self

Configure content before this component executes.

Source

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

Configure overline_content before this component executes.

Source

pub fn overline_content_shared( &self, value: impl Into<RenderSlot> + Send + Sync + 'static, ) -> Self

Configure overline_content before this component executes.

Source

pub fn overline_content_optional(&self, value: Option<RenderSlot>) -> Self

Configure overline_content before this component executes.

Source

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

Configure supporting_content before this component executes.

Source

pub fn supporting_content_shared( &self, value: impl Into<RenderSlot> + Send + Sync + 'static, ) -> Self

Configure supporting_content before this component executes.

Source

pub fn supporting_content_optional(&self, value: Option<RenderSlot>) -> Self

Configure supporting_content before this component executes.

Source

pub fn overline_text(&self, value: impl Into<String>) -> Self

Configure overline_text before this component executes.

Source

pub fn overline_text_optional(&self, value: Option<String>) -> Self

Configure overline_text before this component executes.

Source

pub fn supporting_text(&self, value: impl Into<String>) -> Self

Configure supporting_text before this component executes.

Source

pub fn supporting_text_optional(&self, value: Option<String>) -> Self

Configure supporting_text before this component executes.

Source

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

Configure leading before this component executes.

Source

pub fn leading_shared( &self, value: impl Into<RenderSlot> + Send + Sync + 'static, ) -> Self

Configure leading before this component executes.

Source

pub fn leading_optional(&self, value: Option<RenderSlot>) -> Self

Configure leading before this component executes.

Source

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

Configure trailing before this component executes.

Source

pub fn trailing_shared( &self, value: impl Into<RenderSlot> + Send + Sync + 'static, ) -> Self

Configure trailing before this component executes.

Source

pub fn trailing_optional(&self, value: Option<RenderSlot>) -> Self

Configure trailing before this component executes.

Source

pub fn colors(&self, value: ListItemColors) -> Self

Configure colors before this component executes.

Source

pub fn colors_optional(&self, value: Option<ListItemColors>) -> Self

Configure colors before this component executes.

Source

pub fn shape(&self, value: Shape) -> Self

Configure shape before this component executes.

Source

pub fn shape_optional(&self, value: Option<Shape>) -> Self

Configure shape before this component executes.

Source

pub fn shapes(&self, value: ListItemShapes) -> Self

Configure shapes before this component executes.

Source

pub fn shapes_optional(&self, value: Option<ListItemShapes>) -> Self

Configure shapes before this component executes.

Source

pub fn position(&self, value: ListItemPosition) -> Self

Configure position before this component executes.

Source

pub fn position_optional(&self, value: Option<ListItemPosition>) -> Self

Configure position before this component executes.

Source

pub fn dragged(&self, value: bool) -> Self

Configure dragged before this component executes.

Source

pub fn dragged_optional(&self, value: Option<bool>) -> Self

Configure dragged before this component executes.

Source

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

Configure content_padding before this component executes.

Source

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

Configure content_padding before this component executes.

Source

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

Configure tonal_elevation before this component executes.

Source

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

Configure tonal_elevation before this component executes.

Source

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

Configure shadow_elevation before this component executes.

Source

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

Configure shadow_elevation before this component executes.

Source

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

Configure min_height before this component executes.

Source

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

Configure min_height before this component executes.

Source

pub fn vertical_alignment(&self, value: ListItemVerticalAlignment) -> Self

Configure vertical_alignment before this component executes.

Source

pub fn vertical_alignment_optional( &self, value: Option<ListItemVerticalAlignment>, ) -> Self

Configure vertical_alignment before this component executes.

Source

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

Configure on_click before this component executes.

Source

pub fn on_click_shared( &self, value: impl Into<Callback> + Send + Sync + 'static, ) -> Self

Configure on_click before this component executes.

Source

pub fn on_click_optional(&self, value: Option<Callback>) -> Self

Configure on_click before this component executes.

Source

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

Configure on_long_click before this component executes.

Source

pub fn on_long_click_shared( &self, value: impl Into<Callback> + Send + Sync + 'static, ) -> Self

Configure on_long_click before this component executes.

Source

pub fn on_long_click_optional(&self, value: Option<Callback>) -> Self

Configure on_long_click before this component executes.

Source

pub fn interaction_state(&self, value: State<InteractionState>) -> Self

Configure interaction_state before this component executes.

Source

pub fn interaction_state_optional( &self, value: Option<State<InteractionState>>, ) -> Self

Configure interaction_state before this component executes.

Source

pub fn accessibility_label(&self, value: impl Into<String>) -> Self

Configure accessibility_label before this component executes.

Source

pub fn accessibility_label_optional(&self, value: Option<String>) -> Self

Configure accessibility_label before this component executes.

Source

pub fn accessibility_description(&self, value: impl Into<String>) -> Self

Configure accessibility_description before this component executes.

Source

pub fn accessibility_description_optional(&self, value: Option<String>) -> Self

Configure accessibility_description before this component executes.

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