pub struct DebugView { /* private fields */ }Expand description
Which channels of the debug view are on, and which the running screens
have offered (Ctx::debug_view). None is on
at first. Turned on from the debug menu, which saves the choice
(Ctx::set_debug_channel); a shipped
build never reads or writes it.
Implementations§
Source§impl DebugView
impl DebugView
Sourcepub fn on(&self) -> impl Iterator<Item = &str>
pub fn on(&self) -> impl Iterator<Item = &str>
The ids of the channels on, in order (not those only
show_all turned on).
Sourcepub fn set(&mut self, id: &str, on: bool)
pub fn set(&mut self, id: &str, on: bool)
Turns the channel id on or off. It need not be offered yet: a
screen may offer it later.
Sourcepub fn show_all(&mut self)
pub fn show_all(&mut self)
Turns every channel on, offered now or later (frame-png --debug all). Not saved.
Sourcepub fn offered(&self) -> &[Channel]
pub fn offered(&self) -> &[Channel]
The channels the running screens have offered, in the order first offered.
Trait Implementations§
impl Eq for DebugView
impl StructuralPartialEq for DebugView
Auto Trait Implementations§
impl Freeze for DebugView
impl RefUnwindSafe for DebugView
impl Send for DebugView
impl Sync for DebugView
impl Unpin for DebugView
impl UnsafeUnpin for DebugView
impl UnwindSafe for DebugView
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