pub struct CLIDisplayManager { /* private fields */ }
Expand description
This is the core struct of the library. Everything is managed here. Create this with the initial root item and a refresh rate and drop it when done.
Implementations§
Source§impl CLIDisplayManager
impl CLIDisplayManager
Sourcepub fn new(root_node: CLIDisplayNodeType, tick_rate: u32) -> Self
pub fn new(root_node: CLIDisplayNodeType, tick_rate: u32) -> Self
Creates a CLIDisplayManager with a specified root node and a tick rate at which it updates
Sourcepub fn modify<F: FnOnce(&mut CLIModificationElement<'_>)>(&mut self, f: F)
pub fn modify<F: FnOnce(&mut CLIModificationElement<'_>)>(&mut self, f: F)
Modifies a CLIDisplayManagers output through a CLIModificationElement handle that gets passed to a callback
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CLIDisplayManager
impl !RefUnwindSafe for CLIDisplayManager
impl Send for CLIDisplayManager
impl Sync for CLIDisplayManager
impl Unpin for CLIDisplayManager
impl !UnwindSafe for CLIDisplayManager
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