Enum lightningcss::css_modules::Segment
source · pub enum Segment<'i> {
Literal(&'i str),
Name,
Local,
Hash,
}
Expand description
A segment in a CSS modules class name pattern.
See Pattern.
Variants§
Literal(&'i str)
A literal string segment.
Name
The base file name.
Local
The original class name.
Hash
A hash of the file name.
Trait Implementations§
Auto Trait Implementations§
impl<'i> RefUnwindSafe for Segment<'i>
impl<'i> Send for Segment<'i>
impl<'i> Sync for Segment<'i>
impl<'i> Unpin for Segment<'i>
impl<'i> UnwindSafe for Segment<'i>
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