pub struct CSSAtRule<'a> { /* private fields */ }Expand description
CSS generic @rule representation.
Implementations§
Source§impl<'a> CSSAtRule<'a>
impl<'a> CSSAtRule<'a>
Sourcepub fn builder(
type_: impl Into<Cow<'a, str>>,
origin: impl Into<StyleSheetOrigin>,
style: CSSStyle<'a>,
) -> CSSAtRuleBuilder<'a>
pub fn builder( type_: impl Into<Cow<'a, str>>, origin: impl Into<StyleSheetOrigin>, style: CSSStyle<'a>, ) -> CSSAtRuleBuilder<'a>
Creates a builder for this type with the required parameters:
type_: Type of at-rule.origin: Parent stylesheet’s origin.style: Associated style declaration.
Sourcepub fn subsection(&self) -> Option<&str>
pub fn subsection(&self) -> Option<&str>
Subsection of font-feature-values, if this is a subsection.
Sourcepub fn name(&self) -> Option<&ProtocolValue<'a>>
pub fn name(&self) -> Option<&ProtocolValue<'a>>
LINT.ThenChange(//third_party/blink/renderer/core/inspector/inspector_style_sheet.cc:FontVariantAlternatesFeatureType,//third_party/blink/renderer/core/inspector/inspector_css_agent.cc:FontVariantAlternatesFeatureType) Associated name, if applicable.
Sourcepub fn style_sheet_id(&self) -> Option<&StyleSheetId<'a>>
pub fn style_sheet_id(&self) -> Option<&StyleSheetId<'a>>
The css style sheet identifier (absent for user agent stylesheet and user-specified stylesheet rules) this rule came from.
Sourcepub fn origin(&self) -> &StyleSheetOrigin
pub fn origin(&self) -> &StyleSheetOrigin
Parent stylesheet’s origin.
Trait Implementations§
Source§impl<'de, 'a> Deserialize<'de> for CSSAtRule<'a>
impl<'de, 'a> Deserialize<'de> for CSSAtRule<'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 CSSAtRule<'a>
impl<'a> RefUnwindSafe for CSSAtRule<'a>
impl<'a> Send for CSSAtRule<'a>
impl<'a> Sync for CSSAtRule<'a>
impl<'a> Unpin for CSSAtRule<'a>
impl<'a> UnsafeUnpin for CSSAtRule<'a>
impl<'a> UnwindSafe for CSSAtRule<'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