pub enum SourceKind {
File {
path: PathBuf,
line: Option<u32>,
},
CommandLine {
history_index: usize,
},
MacroReplay {
register: char,
step: u32,
},
DotRepeat(Box<SourceLocation>),
Synthetic(String),
}Expand description
Where to look. Most cases are a real file with a line; a few are synthetic origins that the link follower routes to a different kind of buffer (command-history, macro buffer, transitive dot-repeat).
Variants§
File
Concrete file location, optionally with a line.
Fields
CommandLine
: invocation. Link follower opens the command-history
buffer at history_index.
MacroReplay
Replayed from a recorded macro. Link follower opens the
*macro:<reg>* buffer at step.
Fields
DotRepeat(Box<SourceLocation>)
. re-dispatch. Boxes the originating source so chains of
dot-repeats trace back to where the change actually came
from. The link follower follows the inner source.
Synthetic(String)
Synthetic origin like <initial-load> or <test-fixture>.
Renders inert. Owned String (not &'static) so the type
can derive Deserialize for plugin-bridge wire transport.
Trait Implementations§
Source§impl Clone for SourceKind
impl Clone for SourceKind
Source§fn clone(&self) -> SourceKind
fn clone(&self) -> SourceKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SourceKind
impl Debug for SourceKind
Source§impl<'de> Deserialize<'de> for SourceKind
impl<'de> Deserialize<'de> for SourceKind
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for SourceKind
Source§impl PartialEq for SourceKind
impl PartialEq for SourceKind
Source§impl Serialize for SourceKind
impl Serialize for SourceKind
impl StructuralPartialEq for SourceKind
Auto Trait Implementations§
impl Freeze for SourceKind
impl RefUnwindSafe for SourceKind
impl Send for SourceKind
impl Sync for SourceKind
impl Unpin for SourceKind
impl UnsafeUnpin for SourceKind
impl UnwindSafe for SourceKind
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<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§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
Compare self to
key and return true if they are equal.