Struct lightningcss::dependencies::ImportDependency
source · pub struct ImportDependency {
pub url: String,
pub placeholder: String,
pub supports: Option<String>,
pub media: Option<String>,
pub loc: SourceRange,
}
Expand description
An @import
dependency.
Fields§
§url: String
The url to import.
placeholder: String
The placeholder that the URL was replaced with.
supports: Option<String>
An optional supports()
condition.
media: Option<String>
A media query.
loc: SourceRange
The location of the dependency in the source file.
Implementations§
source§impl ImportDependency
impl ImportDependency
sourcepub fn new(rule: &ImportRule<'_>, filename: &str) -> ImportDependency
pub fn new(rule: &ImportRule<'_>, filename: &str) -> ImportDependency
Creates a new dependency from an @import
rule.
Trait Implementations§
source§impl Debug for ImportDependency
impl Debug for ImportDependency
Auto Trait Implementations§
impl RefUnwindSafe for ImportDependency
impl Send for ImportDependency
impl Sync for ImportDependency
impl Unpin for ImportDependency
impl UnwindSafe for ImportDependency
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