Struct style::properties::NonCustomPropertyId
source · pub struct NonCustomPropertyId(usize);
Expand description
A longhand or shorthand property.
Tuple Fields§
§0: usize
Implementations§
source§impl NonCustomPropertyId
impl NonCustomPropertyId
sourcepub fn is_transitionable(self) -> bool
pub fn is_transitionable(self) -> bool
Returns whether this property is transitionable.
sourcepub fn is_animatable(self) -> bool
pub fn is_animatable(self) -> bool
Returns whether this property is animatable.
fn enabled_for_all_content(self) -> bool
sourcepub fn allowed_in_rule(self, rule_type: CssRuleType) -> bool
pub fn allowed_in_rule(self, rule_type: CssRuleType) -> bool
Returns whether a given rule allows a given property.
fn allowed_in(self, context: &ParserContext<'_>) -> bool
fn allowed_in_ignoring_rule_type(self, context: &ParserContext<'_>) -> bool
sourcefn supported_types(&self) -> u8
fn supported_types(&self) -> u8
The supported types of this property. The return value should be style_traits::CssType when it can become a bitflags type.
sourcefn collect_property_completion_keywords(&self, f: KeywordsCollectFn<'_>)
fn collect_property_completion_keywords(&self, f: KeywordsCollectFn<'_>)
See PropertyId::collect_property_completion_keywords.
sourcepub fn to_property_id(self) -> PropertyId
pub fn to_property_id(self) -> PropertyId
Turns this NonCustomPropertyId
into a PropertyId
.
Trait Implementations§
source§impl Clone for NonCustomPropertyId
impl Clone for NonCustomPropertyId
source§fn clone(&self) -> NonCustomPropertyId
fn clone(&self) -> NonCustomPropertyId
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for NonCustomPropertyId
impl Debug for NonCustomPropertyId
source§impl From<AliasId> for NonCustomPropertyId
impl From<AliasId> for NonCustomPropertyId
source§impl From<LonghandId> for NonCustomPropertyId
impl From<LonghandId> for NonCustomPropertyId
source§fn from(id: LonghandId) -> Self
fn from(id: LonghandId) -> Self
Converts to this type from the input type.
source§impl From<ShorthandId> for NonCustomPropertyId
impl From<ShorthandId> for NonCustomPropertyId
source§fn from(id: ShorthandId) -> Self
fn from(id: ShorthandId) -> Self
Converts to this type from the input type.
impl Copy for NonCustomPropertyId
Auto Trait Implementations§
impl RefUnwindSafe for NonCustomPropertyId
impl Send for NonCustomPropertyId
impl Sync for NonCustomPropertyId
impl Unpin for NonCustomPropertyId
impl UnwindSafe for NonCustomPropertyId
Blanket Implementations§
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> MaybeBoxed<Box<T, Global>> for T
impl<T> MaybeBoxed<Box<T, Global>> for T
source§fn maybe_boxed(self) -> Box<T, Global>
fn maybe_boxed(self) -> Box<T, Global>
Convert
source§impl<T> MaybeBoxed<T> for T
impl<T> MaybeBoxed<T> for T
source§fn maybe_boxed(self) -> T
fn maybe_boxed(self) -> T
Convert