pub struct StyleClosureUnit<'a> {
pub name: &'a str,
pub resource: Option<&'a str>,
pub chunk: Option<u32>,
}Expand description
One delivery unit of a style closure, resolved in cascade order.
A bundled build delivers merged chunks; otherwise every component delivers its own stylesheet. Both walk the closure in the same order, so the emitted cascade is identical either way.
Fields§
§name: &'a strName the client installs this resource under: a chunk name, or a tag.
resource: Option<&'a str>The delivered resource, or None when the protocol holds none.
chunk: Option<u32>Covering chunk index, or None for a standalone component stylesheet.
Trait Implementations§
Source§impl<'a> Clone for StyleClosureUnit<'a>
impl<'a> Clone for StyleClosureUnit<'a>
Source§fn clone(&self) -> StyleClosureUnit<'a>
fn clone(&self) -> StyleClosureUnit<'a>
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<'a> Copy for StyleClosureUnit<'a>
Source§impl<'a> Debug for StyleClosureUnit<'a>
impl<'a> Debug for StyleClosureUnit<'a>
impl<'a> Eq for StyleClosureUnit<'a>
Source§impl<'a> PartialEq for StyleClosureUnit<'a>
impl<'a> PartialEq for StyleClosureUnit<'a>
impl<'a> StructuralPartialEq for StyleClosureUnit<'a>
Auto Trait Implementations§
impl<'a> Freeze for StyleClosureUnit<'a>
impl<'a> RefUnwindSafe for StyleClosureUnit<'a>
impl<'a> Send for StyleClosureUnit<'a>
impl<'a> Sync for StyleClosureUnit<'a>
impl<'a> Unpin for StyleClosureUnit<'a>
impl<'a> UnsafeUnpin for StyleClosureUnit<'a>
impl<'a> UnwindSafe for StyleClosureUnit<'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