Struct lightningcss::bundler::Bundler
source · pub struct Bundler<'a, 'o, 's, P, T: AtRuleParser<'a>> { /* private fields */ }
Expand description
A Bundler combines a CSS file and all imported dependencies together into a single merged style sheet.
Implementations§
source§impl<'a, 'o, 's, P: SourceProvider, T: AtRuleParser<'a> + Clone + Sync + Send> Bundler<'a, 'o, 's, P, T>where
T::AtRule: Sync + Send + ToCss,
impl<'a, 'o, 's, P: SourceProvider, T: AtRuleParser<'a> + Clone + Sync + Send> Bundler<'a, 'o, 's, P, T>where
T::AtRule: Sync + Send + ToCss,
sourcepub fn new(
fs: &'a P,
source_map: Option<&'s mut SourceMap>,
options: ParserOptions<'o, 'a, T>
) -> Self
pub fn new(
fs: &'a P,
source_map: Option<&'s mut SourceMap>,
options: ParserOptions<'o, 'a, T>
) -> Self
Creates a new Bundler using the given source provider. If a source map is given, the content of each source file included in the bundle will be added accordingly.
sourcepub fn bundle<'e>(
&mut self,
entry: &'e Path
) -> Result<StyleSheet<'a, 'o, T>, Error<BundleErrorKind<'a, P::Error>>>
pub fn bundle<'e>(
&mut self,
entry: &'e Path
) -> Result<StyleSheet<'a, 'o, T>, Error<BundleErrorKind<'a, P::Error>>>
Bundles the given entry file and all dependencies into a single style sheet.
Auto Trait Implementations§
impl<'a, 'o, 's, P, T> !RefUnwindSafe for Bundler<'a, 'o, 's, P, T>
impl<'a, 'o, 's, P, T> Send for Bundler<'a, 'o, 's, P, T>where
P: Sync,
T: Send,
<T as AtRuleParser<'a>>::AtRule: Send,
impl<'a, 'o, 's, P, T> Sync for Bundler<'a, 'o, 's, P, T>where
P: Sync,
T: Send + Sync,
<T as AtRuleParser<'a>>::AtRule: Send,
impl<'a, 'o, 's, P, T> Unpin for Bundler<'a, 'o, 's, P, T>where
T: Unpin,
<T as AtRuleParser<'a>>::AtRule: Unpin,
impl<'a, 'o, 's, P, T> UnwindSafe for Bundler<'a, 'o, 's, P, T>where
P: RefUnwindSafe,
T: UnwindSafe,
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