pub enum CssStrategy {
Link,
Style,
Module,
}Expand description
Strategy for how component CSS is delivered in rendered output.
Variants§
Link
Emit <link rel="stylesheet" href="/component.css"> tags (default).
Style
Embed CSS content in <style> tags within the shadow DOM template.
Module
Emit a <style type="module" specifier="component"> definition once per
page and reference it via shadowrootadoptedstylesheets on each shadow
root <template>. Based on the Declarative CSS Module Scripts proposal.
Trait Implementations§
Source§impl Clone for CssStrategy
impl Clone for CssStrategy
Source§fn clone(&self) -> CssStrategy
fn clone(&self) -> CssStrategy
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CssStrategy
impl Debug for CssStrategy
Source§impl Default for CssStrategy
impl Default for CssStrategy
Source§fn default() -> CssStrategy
fn default() -> CssStrategy
Returns the “default value” for a type. Read more
Source§impl PartialEq for CssStrategy
impl PartialEq for CssStrategy
impl Copy for CssStrategy
impl Eq for CssStrategy
impl StructuralPartialEq for CssStrategy
Auto Trait Implementations§
impl Freeze for CssStrategy
impl RefUnwindSafe for CssStrategy
impl Send for CssStrategy
impl Sync for CssStrategy
impl Unpin for CssStrategy
impl UnsafeUnpin for CssStrategy
impl UnwindSafe for CssStrategy
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