Struct style::properties::SourcePropertyDeclaration
source · pub struct SourcePropertyDeclaration {
declarations: ArrayVec<PropertyDeclaration, SUB_PROPERTIES_ARRAY_CAP>,
all_shorthand: AllShorthand,
}
Expand description
A stack-allocated vector of PropertyDeclaration
large enough to parse one CSS key: value
declaration.
(Shorthands expand to multiple PropertyDeclaration
s.)
Fields§
§declarations: ArrayVec<PropertyDeclaration, SUB_PROPERTIES_ARRAY_CAP>
§all_shorthand: AllShorthand
Stored separately to keep SubpropertiesVec smaller.
Implementations§
source§impl SourcePropertyDeclaration
impl SourcePropertyDeclaration
sourcepub fn with_one(decl: PropertyDeclaration) -> Self
pub fn with_one(decl: PropertyDeclaration) -> Self
Create one with a single PropertyDeclaration.
sourcepub fn drain(&mut self) -> SourcePropertyDeclarationDrain<'_>
pub fn drain(&mut self) -> SourcePropertyDeclarationDrain<'_>
Similar to Vec::drain: leaves this empty when the return value is dropped.
fn is_empty(&self) -> bool
fn push(&mut self, declaration: PropertyDeclaration)
Auto Trait Implementations§
impl RefUnwindSafe for SourcePropertyDeclaration
impl Send for SourcePropertyDeclaration
impl Sync for SourcePropertyDeclaration
impl Unpin for SourcePropertyDeclaration
impl UnwindSafe for SourcePropertyDeclaration
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