pub enum SourceLayer {
Builtin,
UserConfig,
ProjectConfig,
Modeline,
Runtime,
Plugin(u32),
}Expand description
Why this thing exists – editor binary, user config, plugin, etc.
Renders as a one-word label next to the [[link]] in help output.
Variants§
Builtin
Compiled into the editor binary.
UserConfig
~/.config/lattice/config.toml.
ProjectConfig
.lattice/config.toml at workspace root.
Modeline
Per-buffer modeline / :setlocal directive.
Runtime
Typed at :, replayed by macro, or . re-dispatch.
Plugin(u32)
WASM plugin (Phase 7). The u32 is the plugin id issued by
the host.
Implementations§
Source§impl SourceLayer
impl SourceLayer
Sourcepub fn label(self) -> &'static str
pub fn label(self) -> &'static str
The one-or-two-word label shown beside the source link in help
output ("built-in", "user config", "plugin", …). A plugin’s
id is not included; see SourceLocation::as_link_with for naming.
Trait Implementations§
Source§impl Clone for SourceLayer
impl Clone for SourceLayer
Source§fn clone(&self) -> SourceLayer
fn clone(&self) -> SourceLayer
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 moreimpl Copy for SourceLayer
Source§impl Debug for SourceLayer
impl Debug for SourceLayer
Source§impl<'de> Deserialize<'de> for SourceLayer
impl<'de> Deserialize<'de> for SourceLayer
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 SourceLayer
Source§impl PartialEq for SourceLayer
impl PartialEq for SourceLayer
Source§impl Serialize for SourceLayer
impl Serialize for SourceLayer
impl StructuralPartialEq for SourceLayer
Auto Trait Implementations§
impl Freeze for SourceLayer
impl RefUnwindSafe for SourceLayer
impl Send for SourceLayer
impl Sync for SourceLayer
impl Unpin for SourceLayer
impl UnsafeUnpin for SourceLayer
impl UnwindSafe for SourceLayer
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.