pub struct CSSPositionTryRule<'a> { /* private fields */ }Expand description
CSS @position-try rule representation.
Implementations§
Source§impl<'a> CSSPositionTryRule<'a>
impl<'a> CSSPositionTryRule<'a>
Sourcepub fn builder(
name: ProtocolValue<'a>,
origin: impl Into<StyleSheetOrigin>,
style: CSSStyle<'a>,
active: bool,
) -> CSSPositionTryRuleBuilder<'a>
pub fn builder( name: ProtocolValue<'a>, origin: impl Into<StyleSheetOrigin>, style: CSSStyle<'a>, active: bool, ) -> CSSPositionTryRuleBuilder<'a>
Creates a builder for this type with the required parameters:
name: The prelude dashed-ident nameorigin: Parent stylesheet’s origin.style: Associated style declaration.active:
Sourcepub fn name(&self) -> &ProtocolValue<'a>
pub fn name(&self) -> &ProtocolValue<'a>
The prelude dashed-ident name
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.
pub fn active(&self) -> bool
Trait Implementations§
Source§impl<'a> Clone for CSSPositionTryRule<'a>
impl<'a> Clone for CSSPositionTryRule<'a>
Source§fn clone(&self) -> CSSPositionTryRule<'a>
fn clone(&self) -> CSSPositionTryRule<'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 moreSource§impl<'a> Debug for CSSPositionTryRule<'a>
impl<'a> Debug for CSSPositionTryRule<'a>
Source§impl<'a> Default for CSSPositionTryRule<'a>
impl<'a> Default for CSSPositionTryRule<'a>
Source§fn default() -> CSSPositionTryRule<'a>
fn default() -> CSSPositionTryRule<'a>
Returns the “default value” for a type. Read more
Source§impl<'de, 'a> Deserialize<'de> for CSSPositionTryRule<'a>
impl<'de, 'a> Deserialize<'de> for CSSPositionTryRule<'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 CSSPositionTryRule<'a>
impl<'a> RefUnwindSafe for CSSPositionTryRule<'a>
impl<'a> Send for CSSPositionTryRule<'a>
impl<'a> Sync for CSSPositionTryRule<'a>
impl<'a> Unpin for CSSPositionTryRule<'a>
impl<'a> UnsafeUnpin for CSSPositionTryRule<'a>
impl<'a> UnwindSafe for CSSPositionTryRule<'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