Struct parcel_css::dependencies::ImportDependency
source · [−]pub struct ImportDependency {
pub url: String,
pub supports: Option<String>,
pub media: Option<String>,
pub loc: SourceRange,
}
Expand description
An @import
dependency.
Fields
url: String
The url to import.
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
sourceimpl 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
sourceimpl Debug for ImportDependency
impl Debug for ImportDependency
sourceimpl Serialize for ImportDependency
impl Serialize 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.
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<F, W, T, D> Deserialize<With<T, W>, D> for F where
W: DeserializeWith<F, T, D>,
D: Fallible + ?Sized,
F: ?Sized,
impl<F, W, T, D> Deserialize<With<T, W>, D> for F where
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