pub struct LanguageConfiguration<'a> {
pub scope: Option<String>,
pub content_regex: Option<Regex>,
pub first_line_regex: Option<Regex>,
pub injection_regex: Option<Regex>,
pub file_types: Vec<String>,
pub root_path: PathBuf,
pub highlights_filenames: Option<Vec<String>>,
pub injections_filenames: Option<Vec<String>>,
pub locals_filenames: Option<Vec<String>>,
pub tags_filenames: Option<Vec<String>>,
pub language_name: String,
/* private fields */
}Fields§
§scope: Option<String>§content_regex: Option<Regex>§first_line_regex: Option<Regex>§injection_regex: Option<Regex>§file_types: Vec<String>§root_path: PathBuf§highlights_filenames: Option<Vec<String>>§injections_filenames: Option<Vec<String>>§locals_filenames: Option<Vec<String>>§language_name: StringImplementations§
Source§impl<'a> LanguageConfiguration<'a>
impl<'a> LanguageConfiguration<'a>
pub fn highlight_config( &self, language: Language, paths: Option<&[String]>, ) -> Result<Option<&HighlightConfiguration>>
Auto Trait Implementations§
impl<'a> !Freeze for LanguageConfiguration<'a>
impl<'a> RefUnwindSafe for LanguageConfiguration<'a>
impl<'a> !Send for LanguageConfiguration<'a>
impl<'a> !Sync for LanguageConfiguration<'a>
impl<'a> Unpin for LanguageConfiguration<'a>
impl<'a> UnwindSafe for LanguageConfiguration<'a>
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