Struct lightningcss::values::syntax::SyntaxComponent
source · pub struct SyntaxComponent {
pub kind: SyntaxComponentKind,
pub multiplier: Multiplier,
}
Expand description
A syntax component within a SyntaxString.
A syntax component consists of a component kind an a multiplier, which indicates how the component may repeat during parsing.
Fields§
§kind: SyntaxComponentKind
The kind of component.
multiplier: Multiplier
A multiplier for the component.
Trait Implementations§
source§impl Clone for SyntaxComponent
impl Clone for SyntaxComponent
source§fn clone(&self) -> SyntaxComponent
fn clone(&self) -> SyntaxComponent
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 SyntaxComponent
impl Debug for SyntaxComponent
source§impl PartialEq<SyntaxComponent> for SyntaxComponent
impl PartialEq<SyntaxComponent> for SyntaxComponent
source§fn eq(&self, other: &SyntaxComponent) -> bool
fn eq(&self, other: &SyntaxComponent) -> bool
source§impl ToCss for SyntaxComponent
impl ToCss for SyntaxComponent
source§fn to_css<W>(
&self,
dest: &mut Printer<'_, '_, '_, W>
) -> Result<(), PrinterError>where
W: Write,
fn to_css<W>(
&self,
dest: &mut Printer<'_, '_, '_, W>
) -> Result<(), PrinterError>where
W: Write,
Serialize
self
in CSS syntax, writing to dest
.source§fn to_css_string(
&self,
options: PrinterOptions<'_>
) -> Result<String, PrinterError>
fn to_css_string(
&self,
options: PrinterOptions<'_>
) -> Result<String, PrinterError>
Serialize
self
in CSS syntax and return a string. Read moreimpl StructuralPartialEq for SyntaxComponent
Auto Trait Implementations§
impl RefUnwindSafe for SyntaxComponent
impl Send for SyntaxComponent
impl Sync for SyntaxComponent
impl Unpin for SyntaxComponent
impl UnwindSafe for SyntaxComponent
Blanket Implementations§
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
§impl<F, W, T, D> Deserialize<With<T, W>, D> for Fwhere
W: DeserializeWith<F, T, D>,
D: Fallible + ?Sized,
F: ?Sized,
impl<F, W, T, D> Deserialize<With<T, W>, D> for Fwhere
W: DeserializeWith<F, T, D>,
D: Fallible + ?Sized,
F: ?Sized,
§fn deserialize(
&self,
deserializer: &mut D
) -> Result<With<T, W>, <D as Fallible>::Error>
fn deserialize(
&self,
deserializer: &mut D
) -> Result<With<T, W>, <D as Fallible>::Error>
Deserializes using the given deserializer