pub struct UseCycleListOptions<T>{ /* private fields */ }
Expand description
Options for use_cycle_list_with_options
.
Implementations§
Source§impl<T> UseCycleListOptions<T>
impl<T> UseCycleListOptions<T>
Sourcepub fn initial_value(self, value: Option<MaybeRwSignal<T>>) -> Self
pub fn initial_value(self, value: Option<MaybeRwSignal<T>>) -> Self
The initial value of the state. Can be a Signal. If none is provided the first entry of the list will be used.
Sourcepub fn fallback_index(self, value: usize) -> Self
pub fn fallback_index(self, value: usize) -> Self
The default index when the current value is not found in the list.
For example when get_index_of
returns None
.
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for UseCycleListOptions<T>where
T: Freeze,
impl<T> !RefUnwindSafe for UseCycleListOptions<T>
impl<T> !Send for UseCycleListOptions<T>
impl<T> !Sync for UseCycleListOptions<T>
impl<T> Unpin for UseCycleListOptions<T>where
T: Unpin,
impl<T> !UnwindSafe for UseCycleListOptions<T>
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more