Struct biji_ui::components::accordion::context::ItemContext
source · pub struct ItemContext {
pub index: usize,
pub open: RwSignal<bool>,
pub disabled: bool,
pub trigger_ref: NodeRef<Button>,
pub allow_loop: bool,
}Fields§
§index: usize§open: RwSignal<bool>§disabled: bool§trigger_ref: NodeRef<Button>§allow_loop: boolImplementations§
source§impl ItemContext
impl ItemContext
pub fn data_state(&self) -> String
Trait Implementations§
source§impl Clone for ItemContext
impl Clone for ItemContext
source§fn clone(&self) -> ItemContext
fn clone(&self) -> ItemContext
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Default for ItemContext
impl Default for ItemContext
source§impl FilterActiveItems<ItemContext> for RootContext
impl FilterActiveItems<ItemContext> for RootContext
fn filter_active_items(&self) -> Vec<ItemContext>
source§impl Toggle for ItemContext
impl Toggle for ItemContext
impl Copy for ItemContext
Auto Trait Implementations§
impl Freeze for ItemContext
impl !RefUnwindSafe for ItemContext
impl !Send for ItemContext
impl !Sync for ItemContext
impl Unpin for ItemContext
impl !UnwindSafe for ItemContext
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