pub struct CodeEditorFeatureFlags {
pub search: bool,
pub diagnostics: bool,
pub folding: bool,
pub symbols: bool,
pub semantic_backends: bool,
}Expand description
Feature switches for code-specific processing and paint layers.
§Examples
use ailloli_ui_editor::CodeEditorFeatureFlags;
let flags = CodeEditorFeatureFlags::default();
assert!(flags.search && flags.diagnostics && flags.folding && flags.symbols);
assert!(!flags.semantic_backends);Fields§
§search: boolEnables search match computation and paint.
diagnostics: boolEnables diagnostic hit testing and paint.
folding: boolEnables fold-region processing and gutter markers.
symbols: boolEnables local symbol indexing.
semantic_backends: boolEnables opt-in LSP/SCIP enrichment owned by the caller.
Trait Implementations§
Source§impl Clone for CodeEditorFeatureFlags
impl Clone for CodeEditorFeatureFlags
Source§fn clone(&self) -> CodeEditorFeatureFlags
fn clone(&self) -> CodeEditorFeatureFlags
Returns a copy of the value. Read more
1.0.0 · 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 CodeEditorFeatureFlags
impl Debug for CodeEditorFeatureFlags
Source§impl Default for CodeEditorFeatureFlags
Enables local deterministic features while leaving semantic backends off.
impl Default for CodeEditorFeatureFlags
Enables local deterministic features while leaving semantic backends off.
Source§impl PartialEq for CodeEditorFeatureFlags
impl PartialEq for CodeEditorFeatureFlags
impl Copy for CodeEditorFeatureFlags
impl Eq for CodeEditorFeatureFlags
impl StructuralPartialEq for CodeEditorFeatureFlags
Auto Trait Implementations§
impl Freeze for CodeEditorFeatureFlags
impl RefUnwindSafe for CodeEditorFeatureFlags
impl Send for CodeEditorFeatureFlags
impl Sync for CodeEditorFeatureFlags
impl Unpin for CodeEditorFeatureFlags
impl UnwindSafe for CodeEditorFeatureFlags
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
Compare self to
key and return true if they are equal.