pub struct Places(/* private fields */);Expand description
Implementations§
Source§impl Places
impl Places
Sourcepub fn defer(
&self,
read: impl FnOnce() -> BTreeMap<String, Source> + Send + 'static,
)
pub fn defer( &self, read: impl FnOnce() -> BTreeMap<String, Source> + Send + 'static, )
Compute the table with read when the first place is asked for.
Sourcepub fn locate(&self, key: &str, span: Span) -> Option<Place>
pub fn locate(&self, key: &str, span: Span) -> Option<Place>
Where span is, inside the definition bound to key. None for a
synthetic span, a key with no source, or a span past the end of the
key’s file: an offset outside the file is proof it indexes another
one, and answering it anyway would name a line that is not the place.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Places
impl RefUnwindSafe for Places
impl Send for Places
impl Sync for Places
impl Unpin for Places
impl UnsafeUnpin for Places
impl UnwindSafe for Places
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