Struct tree_sitter_facade::Language
source · [−]pub struct Language { /* private fields */ }
Implementations
sourceimpl Language
impl Language
pub fn field_count(&self) -> u16
pub fn field_id_for_name(&self, field_name: impl AsRef<[u8]>) -> Option<u16>
pub fn field_name_for_id(&self, field_id: u16) -> Option<Cow<'_, str>>
pub fn id_for_node_kind(&self, kind: &str, named: bool) -> u16
pub fn node_kind_count(&self) -> u16
pub fn node_kind_for_id(&self, id: u16) -> Option<Cow<'_, str>>
pub fn node_kind_is_named(&self, id: u16) -> bool
pub fn node_kind_is_visible(&self, id: u16) -> bool
pub fn version(&self) -> u32
Trait Implementations
impl Eq for Language
impl RefUnwindSafe for Language
impl Send for Language
impl StructuralEq for Language
impl StructuralPartialEq for Language
impl Sync for Language
impl Unpin for Language
impl UnwindSafe for Language
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more