Enum zed2::languages::language_settings::FormatOnSave
source · pub enum FormatOnSave {
On,
Off,
LanguageServer,
External {
command: Arc<str, Global>,
arguments: Arc<[String], Global>,
},
}
Variants§
Trait Implementations§
source§impl Clone for FormatOnSave
impl Clone for FormatOnSave
source§fn clone(&self) -> FormatOnSave
fn clone(&self) -> FormatOnSave
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 FormatOnSave
impl Debug for FormatOnSave
source§impl<'de> Deserialize<'de> for FormatOnSave
impl<'de> Deserialize<'de> for FormatOnSave
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<FormatOnSave, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<FormatOnSave, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl JsonSchema for FormatOnSave
impl JsonSchema for FormatOnSave
source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref
keyword. Read moresource§impl PartialEq<FormatOnSave> for FormatOnSave
impl PartialEq<FormatOnSave> for FormatOnSave
source§fn eq(&self, other: &FormatOnSave) -> bool
fn eq(&self, other: &FormatOnSave) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for FormatOnSave
impl Serialize for FormatOnSave
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where __S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for FormatOnSave
impl StructuralEq for FormatOnSave
impl StructuralPartialEq for FormatOnSave
Auto Trait Implementations§
impl RefUnwindSafe for FormatOnSave
impl Send for FormatOnSave
impl Sync for FormatOnSave
impl Unpin for FormatOnSave
impl UnwindSafe for FormatOnSave
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.