pub fn tab_signal(
        &self,
        selected_tab_signal: impl Signal<Item = Option<MenuTabKind>>,
    ) -> impl Signal<Item = Option<Tab>> {
        let base = self.sidebar.base.clone();

        map_ref! {
            let kind = selected_tab_signal,
            let index = self.trace_index_signal()
                => move {
                    match (*kind, *index) {
                        (Some(kind), Some(index)) => {
                            Some(Tab::new(base.clone(), kind, index))
                        },
                        _ => None

                    }
                }
        }
    }
//The tab signal is re-generated when either the tab is clicked (changing the kind_state)
//or a new trace is selected
The tab signal is re-generated when either the tab is clicked (changing the kind_state)
or a new trace is selected
The tab signal is re - generated when either the tab is clicked ( changing the kind_state ) or a new trace is selected
pub fn tab_signal(
        &self,
        selected_tab_signal: impl Signal<Item = Option<MenuTabKind>>,
    ) -> impl Signal<Item = Option<Tab>> {
        let base = self.sidebar.base.clone();
        map_ref! {
            let kind = selected_tab_signal,
            let index = self.trace_index_signal()
                => move {
                    match (*kind, *index) {
                        (Some(kind), Some(index)) => {
                            Some(Tab::new(base.clone(), kind, index))
                        },
                        _ => None
                    }
                }
        }
    }
pub fn tab_signal ( & self , selected_tab_signal : impl Signal < Item = Option < MenuTabKind > > , ) -> impl Signal < Item = Option < Tab > > { let base = self . sidebar . base . clone ( ) ; map_ref ! { let kind selected_tab_signal let index self trace_index_signal ( ) move { match ( kind index ) { ( Some ( kind ) Some ( index ) ) { Some ( Tab new ( base clone ( ) kind index ) ) } None } } } }
The tab signal is re-generated when either the tab is clicked (changing the kind_state)
or a new trace is selected
The tab signal is re - generated when either the tab is clicked ( changing the kind_state ) or a new trace is selected
&self
selected_tab_signal
impl Signal<Item = Option<MenuTabKind>>
&self
selected_tab_signal
impl Signal<Item = Option<MenuTabKind>>