Struct CodeEditorFeatureFlags
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§
§impl Clone for CodeEditorFeatureFlags
impl Clone for CodeEditorFeatureFlags
§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 more§impl Debug for CodeEditorFeatureFlags
impl Debug for CodeEditorFeatureFlags
§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.
§fn default() -> CodeEditorFeatureFlags
fn default() -> CodeEditorFeatureFlags
Returns search/diagnostics/folding/symbols true and semantic false.
§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.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<A> IntoClickAction<A> for Awhere
A: Clone + 'static,
impl<A> IntoClickAction<A> for Awhere
A: Clone + 'static,
§fn into_click_action(self) -> ClickAction<A>
fn into_click_action(self) -> ClickAction<A>
Implements the into_click_action helper used by this module.