pub struct LocationIndex { /* private fields */ }Implementations§
Source§impl LocationIndex
impl LocationIndex
pub fn new(text: &str) -> Self
pub fn resolve(&self, span: Span) -> Result<ResolvedSpan, LocationResolveError>
pub fn resolve_location( &self, loc: Location, ) -> Result<ResolvedLocation, LocationResolveError>
Auto Trait Implementations§
impl Freeze for LocationIndex
impl RefUnwindSafe for LocationIndex
impl Send for LocationIndex
impl Sync for LocationIndex
impl Unpin for LocationIndex
impl UnwindSafe for LocationIndex
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