pub struct Bundler<'a, 'o, 's, P, T: AtRuleParser<'a>> { /* private fields */ }
Available on crate feature
bundler
only.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> Bundler<'a, 'o, 's, P, DefaultAtRuleParser>
impl<'a, 'o, 's, P: SourceProvider> Bundler<'a, 'o, 's, P, DefaultAtRuleParser>
Sourcepub fn new(
fs: &'a P,
source_map: Option<&'s mut SourceMap>,
options: ParserOptions<'o, 'a>,
) -> Bundler<'a, 'o, 's, P, DefaultAtRuleParser>
pub fn new( fs: &'a P, source_map: Option<&'s mut SourceMap>, options: ParserOptions<'o, 'a>, ) -> Bundler<'a, 'o, 's, P, DefaultAtRuleParser>
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.
Source§impl<'a, 'o, 's, P: SourceProvider, T: AtRuleParser<'a> + Clone + Sync + Send> Bundler<'a, 'o, 's, P, T>
impl<'a, 'o, 's, P: SourceProvider, T: AtRuleParser<'a> + Clone + Sync + Send> Bundler<'a, 'o, 's, P, T>
Sourcepub fn new_with_at_rule_parser(
fs: &'a P,
source_map: Option<&'s mut SourceMap>,
options: ParserOptions<'o, 'a>,
at_rule_parser: &'s mut T,
) -> Self
pub fn new_with_at_rule_parser( fs: &'a P, source_map: Option<&'s mut SourceMap>, options: ParserOptions<'o, 'a>, at_rule_parser: &'s mut 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::AtRule>, Error<BundleErrorKind<'a, P::Error>>>
pub fn bundle<'e>( &mut self, entry: &'e Path, ) -> Result<StyleSheet<'a, 'o, T::AtRule>, 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> !Freeze for Bundler<'a, 'o, 's, P, T>
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>
impl<'a, 'o, 's, P, T> Sync for Bundler<'a, 'o, 's, P, T>
impl<'a, 'o, 's, P, T> Unpin for Bundler<'a, 'o, 's, P, T>
impl<'a, 'o, 's, P, T> UnwindSafe for Bundler<'a, 'o, 's, P, T>where
P: RefUnwindSafe,
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Source§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.
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
Source§impl<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more