Enum workflow_dom::inject::Content
source · pub enum Content<'content> {
Script(Option<&'content str>, &'content [u8]),
Module(Option<&'content str>, &'content [u8]),
Style(Option<&'content str>, &'content [u8]),
}
Expand description
The Content enum specifies the type of the content being injected
Each enum variant contains optional content id
and &[u8]
data.
Variants§
Script(Option<&'content str>, &'content [u8])
This data slice represents a JavaScript script
Module(Option<&'content str>, &'content [u8])
This data slice represents a JavaScript module
Style(Option<&'content str>, &'content [u8])
This data slice represents a CSS stylesheet
Auto Trait Implementations§
impl<'content> Freeze for Content<'content>
impl<'content> RefUnwindSafe for Content<'content>
impl<'content> Send for Content<'content>
impl<'content> Sync for Content<'content>
impl<'content> Unpin for Content<'content>
impl<'content> UnwindSafe for Content<'content>
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