pub enum Script<'a> {
External(&'a str),
Embedded(&'a str),
}Expand description
Information regarding the <script> tags to include.
Variants§
External(&'a str)
Represents a script externally linked (in the public/js directory).
Embedded(&'a str)
Represents a script copy and pasted into the website.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Script<'a>
impl<'a> RefUnwindSafe for Script<'a>
impl<'a> Send for Script<'a>
impl<'a> Sync for Script<'a>
impl<'a> Unpin for Script<'a>
impl<'a> UnwindSafe for Script<'a>
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