pub struct TabsState<TP>where
TP: TabsPolicy,{ /* private fields */ }
Expand description
This is the current state of the tabs widget as a whole. This expands the input data to include a policy that determines how tabs are derived, and the index of the currently selected tab
Implementations§
§impl<TP> TabsState<TP>where
TP: TabsPolicy,
impl<TP> TabsState<TP>where TP: TabsPolicy,
pub const inner: inner<TP> = tabs_state_derived_lenses::inner::new()
pub const inner: inner<TP> = tabs_state_derived_lenses::inner::new()
Lens for the corresponding field.
pub const selected: selected<TP> = tabs_state_derived_lenses::selected::new()
pub const selected: selected<TP> = tabs_state_derived_lenses::selected::new()
Lens for the corresponding field.
pub const policy: policy<TP> = tabs_state_derived_lenses::policy::new()
pub const policy: policy<TP> = tabs_state_derived_lenses::policy::new()
Lens for the corresponding field.
§impl<TP> TabsState<TP>where
TP: TabsPolicy,
impl<TP> TabsState<TP>where TP: TabsPolicy,
pub fn new(
inner: <TP as TabsPolicy>::Input,
selected: usize,
policy: TP
) -> TabsState<TP>
pub fn new( inner: <TP as TabsPolicy>::Input, selected: usize, policy: TP ) -> TabsState<TP>
Create a new TabsState
Trait Implementations§
§impl<TP> Clone for TabsState<TP>where
TP: Clone + TabsPolicy,
<TP as TabsPolicy>::Input: Clone,
impl<TP> Clone for TabsState<TP>where TP: Clone + TabsPolicy, <TP as TabsPolicy>::Input: Clone,
Auto Trait Implementations§
impl<TP> RefUnwindSafe for TabsState<TP>where TP: RefUnwindSafe, <TP as TabsPolicy>::Input: RefUnwindSafe,
impl<TP> Send for TabsState<TP>where TP: Send, <TP as TabsPolicy>::Input: Send,
impl<TP> Sync for TabsState<TP>where TP: Sync, <TP as TabsPolicy>::Input: Sync,
impl<TP> Unpin for TabsState<TP>where TP: Unpin, <TP as TabsPolicy>::Input: Unpin,
impl<TP> UnwindSafe for TabsState<TP>where TP: UnwindSafe, <TP as TabsPolicy>::Input: UnwindSafe,
Blanket Implementations§
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> RoundFrom<T> for T
impl<T> RoundFrom<T> for T
§fn round_from(x: T) -> T
fn round_from(x: T) -> T
Performs the conversion.
§impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
impl<T, U> RoundInto<U> for Twhere U: RoundFrom<T>,
§fn round_into(self) -> U
fn round_into(self) -> U
Performs the conversion.