pub enum LanguageDetection {
ByExtension,
ByContent,
ByShebang,
Combined,
}
Expand description
Methods for detecting the programming language of a file
This enum defines different strategies for automatically determining the programming language of a source code file.
Variants§
Trait Implementations§
Source§impl Clone for LanguageDetection
impl Clone for LanguageDetection
Source§fn clone(&self) -> LanguageDetection
fn clone(&self) -> LanguageDetection
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for LanguageDetection
impl Debug for LanguageDetection
Source§impl<'de> Deserialize<'de> for LanguageDetection
impl<'de> Deserialize<'de> for LanguageDetection
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for LanguageDetection
impl RefUnwindSafe for LanguageDetection
impl Send for LanguageDetection
impl Sync for LanguageDetection
impl Unpin for LanguageDetection
impl UnwindSafe for LanguageDetection
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