pub struct LanguageRegistry { /* private fields */ }Expand description
Registry of known programming languages.
Implementations§
Source§impl LanguageRegistry
impl LanguageRegistry
Sourcepub fn with_builtin() -> Result<Self>
pub fn with_builtin() -> Result<Self>
Create a registry with built-in language definitions.
Sourcepub fn load_toml(&mut self, content: &str) -> Result<()>
pub fn load_toml(&mut self, content: &str) -> Result<()>
Load language definitions from TOML content.
Sourcepub fn load_file(&mut self, path: &Path) -> Result<()>
pub fn load_file(&mut self, path: &Path) -> Result<()>
Load additional language definitions from a file.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LanguageRegistry
impl RefUnwindSafe for LanguageRegistry
impl Send for LanguageRegistry
impl Sync for LanguageRegistry
impl Unpin for LanguageRegistry
impl UnwindSafe for LanguageRegistry
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