pub struct Grammar {
pub ts_language: Language,
pub outline_config: Option<OutlineConfig>,
pub embedding_config: Option<EmbeddingConfig>,
/* private fields */
}
Fields§
§ts_language: Language
§outline_config: Option<OutlineConfig>
§embedding_config: Option<EmbeddingConfig>
Implementations§
source§impl Grammar
impl Grammar
pub fn id(&self) -> usize
pub fn highlight_map(&self) -> HighlightMap
pub fn highlight_id_for_name(&self, name: &str) -> Option<HighlightId>
Auto Trait Implementations§
impl !RefUnwindSafe for Grammar
impl Send for Grammar
impl Sync for Grammar
impl Unpin for Grammar
impl UnwindSafe for Grammar
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