pub enum SyntaxHighlightMode {
Disable,
Enable(String),
}
Variants§
Disable
Enable(String)
This is only the default for buffers that are created by the component when not passed in
via state. The String represents the file_extension_for_new_empty_buffer
which is used as
the argument to EditorBuffer::new_empty() when creating a new
editor buffer.
Implementations§
source§impl SyntaxHighlightMode
impl SyntaxHighlightMode
pub fn get_file_extension_for_new_empty_buffer(&self) -> Option<&str>
Trait Implementations§
source§impl Clone for SyntaxHighlightMode
impl Clone for SyntaxHighlightMode
source§fn clone(&self) -> SyntaxHighlightMode
fn clone(&self) -> SyntaxHighlightMode
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 SyntaxHighlightMode
impl Debug for SyntaxHighlightMode
source§impl<'de> Deserialize<'de> for SyntaxHighlightMode
impl<'de> Deserialize<'de> for SyntaxHighlightMode
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<SyntaxHighlightMode, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<SyntaxHighlightMode, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<SyntaxHighlightMode> for SyntaxHighlightMode
impl PartialEq<SyntaxHighlightMode> for SyntaxHighlightMode
source§fn eq(&self, other: &SyntaxHighlightMode) -> bool
fn eq(&self, other: &SyntaxHighlightMode) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for SyntaxHighlightMode
impl Serialize for SyntaxHighlightMode
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 SyntaxHighlightMode
impl StructuralEq for SyntaxHighlightMode
impl StructuralPartialEq for SyntaxHighlightMode
Auto Trait Implementations§
impl RefUnwindSafe for SyntaxHighlightMode
impl Send for SyntaxHighlightMode
impl Sync for SyntaxHighlightMode
impl Unpin for SyntaxHighlightMode
impl UnwindSafe for SyntaxHighlightMode
Blanket Implementations§
source§impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for Swhere
T: FloatComponent,
Swp: WhitePoint,
Dwp: WhitePoint,
D: AdaptFrom<S, Swp, Dwp, T>,
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for Swhere T: FloatComponent, Swp: WhitePoint, Dwp: WhitePoint, D: AdaptFrom<S, Swp, Dwp, T>,
source§fn adapt_into_using<M>(self, method: M) -> Dwhere
M: TransformMatrix<Swp, Dwp, T>,
fn adapt_into_using<M>(self, method: M) -> Dwhere M: TransformMatrix<Swp, Dwp, T>,
Convert the source color to the destination color using the specified
method
source§fn adapt_into(self) -> D
fn adapt_into(self) -> D
Convert the source color to the destination color using the bradford
method by default
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<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.source§impl<T, U> IntoColor<U> for Twhere
U: FromColor<T>,
impl<T, U> IntoColor<U> for Twhere U: FromColor<T>,
source§fn into_color(self) -> U
fn into_color(self) -> U
Convert into T with values clamped to the color defined bounds Read more
source§impl<T, U> IntoColorUnclamped<U> for Twhere
U: FromColorUnclamped<T>,
impl<T, U> IntoColorUnclamped<U> for Twhere U: FromColorUnclamped<T>,
source§fn into_color_unclamped(self) -> U
fn into_color_unclamped(self) -> U
Convert into T. The resulting color might be invalid in its color space Read more
source§impl<T, U> TryIntoColor<U> for Twhere
U: TryFromColor<T>,
impl<T, U> TryIntoColor<U> for Twhere U: TryFromColor<T>,
source§fn try_into_color(self) -> Result<U, OutOfBounds<U>>
fn try_into_color(self) -> Result<U, OutOfBounds<U>>
Convert into T, returning ok if the color is inside of its defined
range, otherwise an
OutOfBounds
error is returned which contains
the unclamped color. Read more