[][src]Trait mergui::channels::concealer::Concealer

pub trait Concealer<T: PartialEq, R: Sized> {
    fn set_concealed(&mut self, new_consealed_state: bool);
fn is_concealing(&self) -> bool;
fn get_item(&self, key: T) -> Option<&R>;
fn get_item_mut(&mut self, key: T) -> Option<&mut R>;
fn iter_mut(&mut self) -> IterMut<(T, R)>;
fn iter(&self) -> Iter<(T, R)>; }

A trait for every channel which can be used to hide/unhide multiple other widgets

Required methods

fn set_concealed(&mut self, new_consealed_state: bool)

set if the widgets should be hidden or shown

fn is_concealing(&self) -> bool

get if the widgets are hidden or shown

fn get_item(&self, key: T) -> Option<&R>

get a specific channel

fn get_item_mut(&mut self, key: T) -> Option<&mut R>

get a specific channel, mutable

fn iter_mut(&mut self) -> IterMut<(T, R)>

get an iterator over every channel, mutable

fn iter(&self) -> Iter<(T, R)>

get an iterator over every channel

Loading content...

Implementors

impl<T: PartialEq, R: Sized> Concealer<T, R> for ConcealerReturn<T, R>[src]

Loading content...