pub struct SyntaxDef { /* private fields */ }Expand description
A parsed grammar. The app supplies a validated .sublime-syntax definition;
scrive-core ships no grammar of its own and stays language-agnostic.
Implementations§
Source§impl SyntaxDef
impl SyntaxDef
Sourcepub fn from_sublime_syntax(s: &str) -> Result<Self, SyntaxError>
pub fn from_sublime_syntax(s: &str) -> Result<Self, SyntaxError>
Parse an injected .sublime-syntax grammar (LF-only lines, no trailing
newline in the regexes).
Auto Trait Implementations§
impl !Freeze for SyntaxDef
impl RefUnwindSafe for SyntaxDef
impl Send for SyntaxDef
impl Sync for SyntaxDef
impl Unpin for SyntaxDef
impl UnsafeUnpin for SyntaxDef
impl UnwindSafe for SyntaxDef
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