pub struct Languages;
Implementations§
Source§impl Languages
impl Languages
pub fn get_by_name(&self, name: &str) -> Option<LanguageInfo>
pub fn get_by_id(&self, id: u64) -> Option<LanguageInfo>
pub fn get_by_extension(&self, ext: &str) -> Vec<LanguageInfo>
pub fn get_by_alias(&self, alias: &str) -> Vec<LanguageInfo>
pub fn get_by_filename(&self, filename: &str) -> Vec<LanguageInfo>
pub fn get_by_interpreter(&self, interpreter: &str) -> Vec<LanguageInfo>
pub fn get_by_type(&self, type: &str) -> Vec<LanguageInfo>
pub fn all_languages(&self) -> &[LanguageInfo]
Auto Trait Implementations§
impl Freeze for Languages
impl RefUnwindSafe for Languages
impl Send for Languages
impl Sync for Languages
impl Unpin for Languages
impl UnwindSafe for Languages
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