pub enum ComponentStyleDelivery<'a> {
Link {
href: &'a str,
},
Inline {
css: &'a str,
},
Adopted {
specifier: &'a str,
},
}Expand description
Build-resolved CSS delivery for a component.
Variants§
Link
An external stylesheet served at href.
Inline
The compiled CSS text itself.
Adopted
A constructed stylesheet the root adopts by specifier, already
recorded on the template’s shadowrootadoptedstylesheets.
Trait Implementations§
Source§impl<'a> Clone for ComponentStyleDelivery<'a>
impl<'a> Clone for ComponentStyleDelivery<'a>
impl<'a> Copy for ComponentStyleDelivery<'a>
Source§impl<'a> Debug for ComponentStyleDelivery<'a>
impl<'a> Debug for ComponentStyleDelivery<'a>
impl<'a> Eq for ComponentStyleDelivery<'a>
Source§impl<'a> PartialEq for ComponentStyleDelivery<'a>
impl<'a> PartialEq for ComponentStyleDelivery<'a>
impl<'a> StructuralPartialEq for ComponentStyleDelivery<'a>
Auto Trait Implementations§
impl<'a> Freeze for ComponentStyleDelivery<'a>
impl<'a> RefUnwindSafe for ComponentStyleDelivery<'a>
impl<'a> Send for ComponentStyleDelivery<'a>
impl<'a> Sync for ComponentStyleDelivery<'a>
impl<'a> Unpin for ComponentStyleDelivery<'a>
impl<'a> UnsafeUnpin for ComponentStyleDelivery<'a>
impl<'a> UnwindSafe for ComponentStyleDelivery<'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