pub struct IsolateMainConfig;Expand description
Isolate-main plugin: restrict output to the <main> element.
Equivalent to isolateMain: true in the JS API. Pass IsolateMainConfig
(or IsolateMainConfig::default()) to enable:
use mdream::{PluginConfig, IsolateMainConfig};
let plugins = PluginConfig {
isolate_main: Some(IsolateMainConfig),
..Default::default()
};Trait Implementations§
Source§impl Clone for IsolateMainConfig
impl Clone for IsolateMainConfig
Source§fn clone(&self) -> IsolateMainConfig
fn clone(&self) -> IsolateMainConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for IsolateMainConfig
Source§impl Debug for IsolateMainConfig
impl Debug for IsolateMainConfig
Source§impl Default for IsolateMainConfig
impl Default for IsolateMainConfig
Source§fn default() -> IsolateMainConfig
fn default() -> IsolateMainConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for IsolateMainConfig
impl RefUnwindSafe for IsolateMainConfig
impl Send for IsolateMainConfig
impl Sync for IsolateMainConfig
impl Unpin for IsolateMainConfig
impl UnsafeUnpin for IsolateMainConfig
impl UnwindSafe for IsolateMainConfig
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