Struct zed2::languages::language_settings::AllLanguageSettings
source · pub struct AllLanguageSettings {
pub copilot: CopilotSettings,
/* private fields */
}
Fields§
§copilot: CopilotSettings
Implementations§
Trait Implementations§
source§impl Clone for AllLanguageSettings
impl Clone for AllLanguageSettings
source§fn clone(&self) -> AllLanguageSettings
fn clone(&self) -> AllLanguageSettings
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 AllLanguageSettings
impl Debug for AllLanguageSettings
source§impl Settings for AllLanguageSettings
impl Settings for AllLanguageSettings
source§const KEY: Option<&'static str> = None
const KEY: Option<&'static str> = None
The name of a key within the JSON file from which this setting should
be deserialized. If this is
None
, then the setting will be deserialized
from the root object.§type FileContent = AllLanguageSettingsContent
type FileContent = AllLanguageSettingsContent
The type that is stored in an individual JSON file.
source§fn load(
default_value: &<AllLanguageSettings as Settings>::FileContent,
user_settings: &[&<AllLanguageSettings as Settings>::FileContent],
_: &mut AppContext
) -> Result<AllLanguageSettings, Error>
fn load( default_value: &<AllLanguageSettings as Settings>::FileContent, user_settings: &[&<AllLanguageSettings as Settings>::FileContent], _: &mut AppContext ) -> Result<AllLanguageSettings, Error>
The logic for combining together values from one or more JSON files into the
final value for this setting. Read more
fn json_schema( generator: &mut SchemaGenerator, params: &SettingsJsonSchemaParams<'_>, _: &AppContext ) -> RootSchema
fn json_merge( default_value: &Self::FileContent, user_values: &[&Self::FileContent] ) -> Result<Self::FileContent, Error>
fn missing_default() -> Error
fn register(cx: &mut AppContext)where Self: Sized,
fn get<'a>(path: Option<(usize, &Path)>, cx: &'a AppContext) -> &'a Selfwhere Self: Sized,
fn get_global<'a>(cx: &'a AppContext) -> &'a Selfwhere Self: Sized,
fn override_global<'a>(settings: Self, cx: &'a mut AppContext)where Self: Sized,
Auto Trait Implementations§
impl RefUnwindSafe for AllLanguageSettings
impl Send for AllLanguageSettings
impl Sync for AllLanguageSettings
impl Unpin for AllLanguageSettings
impl UnwindSafe for AllLanguageSettings
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