pub struct AdvancedSourceMapGenerator { /* private fields */ }Expand description
Advanced source map generator
Implementations§
Source§impl AdvancedSourceMapGenerator
impl AdvancedSourceMapGenerator
Sourcepub fn generate_source_map(
&mut self,
css: &str,
source_files: &[SourceFile],
) -> Result<SourceMap, AdvancedFeatureError>
pub fn generate_source_map( &mut self, css: &str, source_files: &[SourceFile], ) -> Result<SourceMap, AdvancedFeatureError>
Generate comprehensive source map
Sourcepub fn add_transformation(
&mut self,
transformation: Transformation,
) -> Result<(), AdvancedFeatureError>
pub fn add_transformation( &mut self, transformation: Transformation, ) -> Result<(), AdvancedFeatureError>
Add transformation mapping
Sourcepub fn resolve_source_location(
&self,
line: usize,
column: usize,
) -> Result<SourceLocation, AdvancedFeatureError>
pub fn resolve_source_location( &self, line: usize, column: usize, ) -> Result<SourceLocation, AdvancedFeatureError>
Resolve source location
Auto Trait Implementations§
impl Freeze for AdvancedSourceMapGenerator
impl RefUnwindSafe for AdvancedSourceMapGenerator
impl Send for AdvancedSourceMapGenerator
impl Sync for AdvancedSourceMapGenerator
impl Unpin for AdvancedSourceMapGenerator
impl UnwindSafe for AdvancedSourceMapGenerator
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
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