pub struct FrameRegistry { /* private fields */ }Expand description
The frames that exist.
Implementations§
Source§impl FrameRegistry
impl FrameRegistry
pub fn new() -> Self
Sourcepub fn insert(&mut self, spec: FrameSpec) -> Result<(), String>
pub fn insert(&mut self, spec: FrameSpec) -> Result<(), String>
Declares a frame; refused when its id is taken, or when a mode has no group.
pub fn get(&self, id: &FrameId) -> Option<&FrameSpec>
pub fn remove(&mut self, id: &FrameId) -> Option<FrameSpec>
pub fn iter(&self) -> impl Iterator<Item = &FrameSpec>
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
Sourcepub fn visible_groups(&self) -> BTreeSet<GroupId>
pub fn visible_groups(&self) -> BTreeSet<GroupId>
The groups shown in the status bar: those with a mode declared
FrameSpec::visible.
Trait Implementations§
Source§impl Clone for FrameRegistry
impl Clone for FrameRegistry
Source§fn clone(&self) -> FrameRegistry
fn clone(&self) -> FrameRegistry
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FrameRegistry
impl Debug for FrameRegistry
Source§impl Default for FrameRegistry
impl Default for FrameRegistry
Source§fn default() -> FrameRegistry
fn default() -> FrameRegistry
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for FrameRegistry
impl !RefUnwindSafe for FrameRegistry
impl Send for FrameRegistry
impl Sync for FrameRegistry
impl Unpin for FrameRegistry
impl UnsafeUnpin for FrameRegistry
impl !UnwindSafe for FrameRegistry
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more