pub struct CSSLayer<'a> { /* private fields */ }Expand description
CSS Layer at-rule descriptor.
Implementations§
Source§impl<'a> CSSLayer<'a>
impl<'a> CSSLayer<'a>
Sourcepub fn builder(text: impl Into<Cow<'a, str>>) -> CSSLayerBuilder<'a>
pub fn builder(text: impl Into<Cow<'a, str>>) -> CSSLayerBuilder<'a>
Creates a builder for this type with the required parameters:
text: Layer name.
Sourcepub fn range(&self) -> Option<&SourceRange>
pub fn range(&self) -> Option<&SourceRange>
The associated rule header range in the enclosing stylesheet (if available).
Sourcepub fn style_sheet_id(&self) -> Option<&StyleSheetId<'a>>
pub fn style_sheet_id(&self) -> Option<&StyleSheetId<'a>>
Identifier of the stylesheet containing this object (if exists).
Trait Implementations§
Source§impl<'de, 'a> Deserialize<'de> for CSSLayer<'a>
impl<'de, 'a> Deserialize<'de> for CSSLayer<'a>
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl<'a> Freeze for CSSLayer<'a>
impl<'a> RefUnwindSafe for CSSLayer<'a>
impl<'a> Send for CSSLayer<'a>
impl<'a> Sync for CSSLayer<'a>
impl<'a> Unpin for CSSLayer<'a>
impl<'a> UnsafeUnpin for CSSLayer<'a>
impl<'a> UnwindSafe for CSSLayer<'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