pub enum DocSource {
Path(Text),
Embedder(u64),
Anonymous(u32),
}Expand description
Where a document came from. The realm keeps no source text, so this is what finds the text again.
Variants§
Path(Text)
A file, read again on demand.
Embedder(u64)
An opaque back-reference from the embedder, which stores the text: a REPL input, a notebook cell.
Anonymous(u32)
A source given with nothing to point back to. Numbered from the realm’s
made names, so the document of chunk __eval_3 is Anonymous(3).
Trait Implementations§
impl Eq for DocSource
impl StructuralPartialEq for DocSource
Auto Trait Implementations§
impl !RefUnwindSafe for DocSource
impl !Sync for DocSource
impl !UnwindSafe for DocSource
impl Freeze for DocSource
impl Send for DocSource
impl Unpin for DocSource
impl UnsafeUnpin for DocSource
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more