Struct lightningcss::rules::layer::LayerBlockRule
source · pub struct LayerBlockRule<'i, R = DefaultAtRule> {
pub name: Option<LayerName<'i>>,
pub rules: CssRuleList<'i, R>,
pub loc: Location,
}
Expand description
A @layer block rule.
Fields§
§name: Option<LayerName<'i>>
The name of the layer to declare, or None
to declare an anonymous layer.
rules: CssRuleList<'i, R>
The rules within the @layer
rule.
loc: Location
The location of the rule in the source file.
Trait Implementations§
source§impl<'i, R: Clone> Clone for LayerBlockRule<'i, R>
impl<'i, R: Clone> Clone for LayerBlockRule<'i, R>
source§fn clone(&self) -> LayerBlockRule<'i, R>
fn clone(&self) -> LayerBlockRule<'i, R>
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<'i, R: Debug> Debug for LayerBlockRule<'i, R>
impl<'i, R: Debug> Debug for LayerBlockRule<'i, R>
source§impl<'de: 'i, 'i, R> Deserialize<'de> for LayerBlockRule<'i, R>where
R: Deserialize<'de>,
impl<'de: 'i, 'i, R> Deserialize<'de> for LayerBlockRule<'i, R>where R: Deserialize<'de>,
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
source§impl<'i, R: JsonSchema> JsonSchema for LayerBlockRule<'i, R>
impl<'i, R: JsonSchema> JsonSchema for LayerBlockRule<'i, R>
source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref
keyword. Read moresource§impl<'i, R: PartialEq> PartialEq<LayerBlockRule<'i, R>> for LayerBlockRule<'i, R>
impl<'i, R: PartialEq> PartialEq<LayerBlockRule<'i, R>> for LayerBlockRule<'i, R>
source§fn eq(&self, other: &LayerBlockRule<'i, R>) -> bool
fn eq(&self, other: &LayerBlockRule<'i, R>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'i, R> Serialize for LayerBlockRule<'i, R>where
R: Serialize,
impl<'i, R> Serialize for LayerBlockRule<'i, R>where R: Serialize,
source§impl<'a, 'i, T: ToCss> ToCss for LayerBlockRule<'i, T>
impl<'a, 'i, T: ToCss> ToCss for LayerBlockRule<'i, T>
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 moresource§impl<'i, R, __V: Visitor<'i, R>> Visit<'i, R, __V> for LayerBlockRule<'i, R>where
R: Visit<'i, R, __V>,
impl<'i, R, __V: Visitor<'i, R>> Visit<'i, R, __V> for LayerBlockRule<'i, R>where R: Visit<'i, R, __V>,
source§const CHILD_TYPES: VisitTypes = _
const CHILD_TYPES: VisitTypes = _
Available on crate feature
visitor
only.The types of values contained within this value and its children.
This is used to skip branches that don’t have any values requested
by the Visitor.
impl<'i, R> StructuralPartialEq for LayerBlockRule<'i, R>
Auto Trait Implementations§
impl<'i, R> RefUnwindSafe for LayerBlockRule<'i, R>where R: RefUnwindSafe,
impl<'i, R> Send for LayerBlockRule<'i, R>where R: Send,
impl<'i, R> Sync for LayerBlockRule<'i, R>where R: Sync,
impl<'i, R> Unpin for LayerBlockRule<'i, R>where R: Unpin,
impl<'i, R> UnwindSafe for LayerBlockRule<'i, R>where R: UnwindSafe,
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