pub fn add_story_view_layer(
    s: &mut Cursive,
    client: &'static client::HNClient,
    tag: &'static str,
    by_date: bool,
    page: usize,
    numeric_filters: client::StoryNumericFilters,
    pop_layer: bool,
) {
    let async_view =
        async_view::get_story_view_async(s, client, tag, by_date, page, numeric_filters);
    if pop_layer {
        s.pop_layer();
    }
    s.screen_mut().add_transparent_layer(Layer::new(async_view));
}
/// Add a StoryView as a new layer to the main Cursive View
Add a StoryView as a new layer to the main Cursive View
Add a StoryView as a new layer to the main Cursive View
pub fn add_story_view_layer(
    s: &mut Cursive,
    client: &'static client::HNClient,
    tag: &'static str,
    by_date: bool,
    page: usize,
    numeric_filters: client::StoryNumericFilters,
    pop_layer: bool,
) {
    let async_view =
        async_view::get_story_view_async(s, client, tag, by_date, page, numeric_filters);
    if pop_layer {
        s.pop_layer();
    }
    s.screen_mut().add_transparent_layer(Layer::new(async_view));
}
pub fn add_story_view_layer ( s : & mut Cursive , client : & ' static client :: HNClient , tag : & ' static str , by_date : bool , page : usize , numeric_filters : client :: StoryNumericFilters , pop_layer : bool , ) { let async_view = async_view :: get_story_view_async ( s , client , tag , by_date , page , numeric_filters ) ; if pop_layer { s . pop_layer ( ) ; } s . screen_mut ( ) . add_transparent_layer ( Layer :: new ( async_view ) ) ; }
Add a StoryView as a new layer to the main Cursive View
Add a StoryView as a new layer to the main Cursive View
s
&mut Cursive
client
&'static client::HNClient
tag
&'static str
by_date
bool
page
usize
numeric_filters
client::StoryNumericFilters
pop_layer
bool