pub struct PreprocessedSource { /* private fields */ }Expand description
Parser text together with an exact, composable map back to the caller’s source.
Implementations§
Source§impl PreprocessedSource
impl PreprocessedSource
pub fn new(source: &str) -> Self
pub fn text(&self) -> &str
pub fn try_map_span(&self, span: SourceSpan) -> Option<SourceSpan>
pub fn into_text(self) -> String
Trait Implementations§
Source§impl Clone for PreprocessedSource
impl Clone for PreprocessedSource
Auto Trait Implementations§
impl Freeze for PreprocessedSource
impl RefUnwindSafe for PreprocessedSource
impl Send for PreprocessedSource
impl Sync for PreprocessedSource
impl Unpin for PreprocessedSource
impl UnsafeUnpin for PreprocessedSource
impl UnwindSafe for PreprocessedSource
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