pub struct GrammarKey {
pub id: String,
pub abi: u32,
}Expand description
The grammar a file was parsed with.
Fields§
§id: StringThe language’s identifier.
abi: u32The tree-sitter ABI version the grammar was built against.
Trait Implementations§
Source§impl Clone for GrammarKey
impl Clone for GrammarKey
Source§fn clone(&self) -> GrammarKey
fn clone(&self) -> GrammarKey
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GrammarKey
impl Debug for GrammarKey
impl Eq for GrammarKey
Source§impl PartialEq for GrammarKey
impl PartialEq for GrammarKey
impl StructuralPartialEq for GrammarKey
Auto Trait Implementations§
impl Freeze for GrammarKey
impl RefUnwindSafe for GrammarKey
impl Send for GrammarKey
impl Sync for GrammarKey
impl Unpin for GrammarKey
impl UnsafeUnpin for GrammarKey
impl UnwindSafe for GrammarKey
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