pub struct Import {
pub url: String,
pub layer: Option<Option<String>>,
pub supports: Option<(String, bool)>,
pub media: MediaQueryList,
pub scope: Option<ScopeBounds>,
}Expand description
@import, CSS Cascade 5 §2: the URL as written, the layer it puts the
sheet in, and the conditions on it.
Fields§
§url: String§layer: Option<Option<String>>None for no layer, Some(None) for layer alone, an anonymous
one, Some(Some(name)) for layer(name).
supports: Option<(String, bool)>The supports() condition, as written, and whether it holds.
media: MediaQueryList§scope: Option<ScopeBounds>scope(…), CSS Cascade 6 §2.1: the imported sheet’s rules as if in
an @scope with these bounds.
Implementations§
Trait Implementations§
impl StructuralPartialEq for Import
Auto Trait Implementations§
impl Forget for Import
impl Freeze for Import
impl Move for Import
impl RefUnwindSafe for Import
impl Send for Import
impl Sync for Import
impl Unpin for Import
impl UnsafeUnpin for Import
impl UnwindSafe for Import
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more