pub struct ModeManager { /* private fields */ }Expand description
Manager for multiple processing modes
DSSSL supports multiple named modes for different processing contexts. The unnamed mode (empty string key) is the initial/default mode.
Implementations§
Source§impl ModeManager
impl ModeManager
Sourcepub fn get_or_create_mode(&mut self, name: &str) -> &mut ProcessingMode
pub fn get_or_create_mode(&mut self, name: &str) -> &mut ProcessingMode
Get or create a mode by name
Sourcepub fn get_mode(&self, name: &str) -> Option<&ProcessingMode>
pub fn get_mode(&self, name: &str) -> Option<&ProcessingMode>
Get a mode by name (read-only)
Sourcepub fn default_mode(&mut self) -> &mut ProcessingMode
pub fn default_mode(&mut self) -> &mut ProcessingMode
Get the default (unnamed) mode
Sourcepub fn get_default_mode(&self) -> Option<&ProcessingMode>
pub fn get_default_mode(&self) -> Option<&ProcessingMode>
Get the default (unnamed) mode (read-only)
Auto Trait Implementations§
impl !RefUnwindSafe for ModeManager
impl !Send for ModeManager
impl !Sync for ModeManager
impl !UnwindSafe for ModeManager
impl Freeze for ModeManager
impl Unpin for ModeManager
impl UnsafeUnpin for ModeManager
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