pub struct SourceMapBatch {
pub entries: Vec<RangeTransform>,
}Expand description
A batch of source map entries.
Fields§
§entries: Vec<RangeTransform>All entries
Implementations§
Source§impl SourceMapBatch
impl SourceMapBatch
Sourcepub fn add(&mut self, e: RangeTransform)
pub fn add(&mut self, e: RangeTransform)
Add an entry.
Sourcepub fn total_coverage(&self) -> usize
pub fn total_coverage(&self) -> usize
Returns the total coverage (sum of original ranges).
Sourcepub fn length_preserving_count(&self) -> usize
pub fn length_preserving_count(&self) -> usize
Returns the number of length-preserving entries.
Trait Implementations§
Source§impl Debug for SourceMapBatch
impl Debug for SourceMapBatch
Source§impl Default for SourceMapBatch
impl Default for SourceMapBatch
Source§fn default() -> SourceMapBatch
fn default() -> SourceMapBatch
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SourceMapBatch
impl RefUnwindSafe for SourceMapBatch
impl Send for SourceMapBatch
impl Sync for SourceMapBatch
impl Unpin for SourceMapBatch
impl UnsafeUnpin for SourceMapBatch
impl UnwindSafe for SourceMapBatch
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