Struct redblocks::Bridge [−][src]
pub struct Bridge(_, _);
Expand description
Allows for two or more plugins to be displayed side by side with no seperator; SubWidgets share the same timer
#[macro_use] extern crate redblocks; use redblocks::{ Widget, SubWidget, Bridge, plugins::BatPlugin}; fn main() { let joined = vec![SubWidget::new(BatPlugin::new_percent()), SubWidget::new(BatPlugin::new_time())]; let bridge = Bridge::new(joined); let bar = vec![Widget::new(bridge, 1)]; start_bar!(bar); }
Implementations
creates a Bridge with the default delimiter
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Bridge
impl !UnwindSafe for Bridge