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<PathBuf>>,
pub injections_filenames: Option<Vec<PathBuf>>,
pub locals_filenames: Option<Vec<PathBuf>>,
pub tags_filenames: Option<Vec<PathBuf>>,
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<PathBuf>>
§injections_filenames: Option<Vec<PathBuf>>
§locals_filenames: Option<Vec<PathBuf>>
§language_name: String
Implementations§
Source§impl LanguageConfiguration<'_>
impl LanguageConfiguration<'_>
pub fn highlight_config( &self, language: Language, paths: Option<&[PathBuf]>, ) -> 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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more