Enum css_module_lexer::Dependency
source · pub enum Dependency<'s> {
Show 18 variants
Url {
request: &'s str,
range: Range,
kind: UrlRangeKind,
},
Import {
request: &'s str,
range: Range,
layer: Option<&'s str>,
supports: Option<&'s str>,
media: Option<&'s str>,
},
Replace {
content: &'s str,
range: Range,
},
LocalClass {
name: &'s str,
range: Range,
explicit: bool,
},
LocalId {
name: &'s str,
range: Range,
explicit: bool,
},
LocalVar {
name: &'s str,
range: Range,
from: Option<&'s str>,
},
LocalVarDecl {
name: &'s str,
range: Range,
},
LocalPropertyDecl {
name: &'s str,
range: Range,
},
LocalKeyframes {
name: &'s str,
range: Range,
},
LocalKeyframesDecl {
name: &'s str,
range: Range,
},
LocalCounterStyle {
name: &'s str,
range: Range,
},
LocalCounterStyleDecl {
name: &'s str,
range: Range,
},
LocalFontPalette {
name: &'s str,
range: Range,
},
LocalFontPaletteDecl {
name: &'s str,
range: Range,
},
Composes {
local_classes: SmallVec<[&'s str; 2]>,
names: SmallVec<[&'s str; 2]>,
from: Option<&'s str>,
range: Range,
},
ICSSImportFrom {
path: &'s str,
},
ICSSImportValue {
prop: &'s str,
value: &'s str,
},
ICSSExportValue {
prop: &'s str,
value: &'s str,
},
}
Variants§
Url
Import
Fields
Replace
LocalClass
LocalId
LocalVar
LocalVarDecl
LocalPropertyDecl
LocalKeyframes
LocalKeyframesDecl
LocalCounterStyle
LocalCounterStyleDecl
LocalFontPalette
LocalFontPaletteDecl
Composes
Fields
ICSSImportFrom
ICSSImportValue
ICSSExportValue
Trait Implementations§
source§impl<'s> Clone for Dependency<'s>
impl<'s> Clone for Dependency<'s>
source§fn clone(&self) -> Dependency<'s>
fn clone(&self) -> Dependency<'s>
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<'s> Debug for Dependency<'s>
impl<'s> Debug for Dependency<'s>
source§impl<'s> Hash for Dependency<'s>
impl<'s> Hash for Dependency<'s>
source§impl<'s> PartialEq for Dependency<'s>
impl<'s> PartialEq for Dependency<'s>
source§fn eq(&self, other: &Dependency<'s>) -> bool
fn eq(&self, other: &Dependency<'s>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<'s> Eq for Dependency<'s>
impl<'s> StructuralPartialEq for Dependency<'s>
Auto Trait Implementations§
impl<'s> Freeze for Dependency<'s>
impl<'s> RefUnwindSafe for Dependency<'s>
impl<'s> Send for Dependency<'s>
impl<'s> Sync for Dependency<'s>
impl<'s> Unpin for Dependency<'s>
impl<'s> UnwindSafe for Dependency<'s>
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