Struct parcel_css::bundler::Bundler
source · [−]pub struct Bundler<'a, 'o, 's, P> { /* private fields */ }
Expand description
A Bundler combines a CSS file and all imported dependencies together into a single merged style sheet.
Implementations
sourceimpl<'a, 'o, 's, P: SourceProvider> Bundler<'a, 'o, 's, P>
impl<'a, 'o, 's, P: SourceProvider> Bundler<'a, 'o, 's, P>
sourcepub fn new(
fs: &'a P,
source_map: Option<&'s mut SourceMap>,
options: ParserOptions<'o, 'a>
) -> Self
pub fn new(
fs: &'a P,
source_map: Option<&'s mut SourceMap>,
options: ParserOptions<'o, 'a>
) -> 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>, Error<BundleErrorKind<'a>>>
pub fn bundle<'e>(
&mut self,
entry: &'e Path
) -> Result<StyleSheet<'a, 'o>, Error<BundleErrorKind<'a>>>
Bundles the given entry file and all dependencies into a single style sheet.
Auto Trait Implementations
impl<'a, 'o, 's, P> !RefUnwindSafe for Bundler<'a, 'o, 's, P>
impl<'a, 'o, 's, P> Send for Bundler<'a, 'o, 's, P> where
P: Sync,
impl<'a, 'o, 's, P> Sync for Bundler<'a, 'o, 's, P> where
P: Sync,
impl<'a, 'o, 's, P> Unpin for Bundler<'a, 'o, 's, P>
impl<'a, 'o, 's, P> UnwindSafe for Bundler<'a, 'o, 's, P> where
P: RefUnwindSafe,
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.
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<F, W, T, D> Deserialize<With<T, W>, D> for F where
W: DeserializeWith<F, T, D>,
D: Fallible + ?Sized,
F: ?Sized,
impl<F, W, T, D> Deserialize<With<T, W>, D> for F where
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