Struct umm::constants::JAVA_TS_LANG
source · pub struct JAVA_TS_LANG {
__private_field: (),
}
Expand description
Reference to treesitter language struct
Fields§
§__private_field: ()
Methods from Deref<Target = Language>§
pub fn version(&self) -> usize
pub fn version(&self) -> usize
Get the ABI version number that indicates which version of the Tree-sitter CLI
that was used to generate this Language
.
pub fn node_kind_count(&self) -> usize
pub fn node_kind_count(&self) -> usize
Get the number of distinct node types in this language.
pub fn node_kind_for_id(&self, id: u16) -> Option<&'static str>
pub fn node_kind_for_id(&self, id: u16) -> Option<&'static str>
Get the name of the node kind for the given numerical id.
pub fn id_for_node_kind(&self, kind: &str, named: bool) -> u16
pub fn id_for_node_kind(&self, kind: &str, named: bool) -> u16
Get the numeric id for the given node kind.
pub fn node_kind_is_named(&self, id: u16) -> bool
pub fn node_kind_is_named(&self, id: u16) -> bool
Check if the node type for the given numerical id is named (as opposed to an anonymous node type).
pub fn node_kind_is_visible(&self, id: u16) -> bool
pub fn field_count(&self) -> usize
pub fn field_count(&self) -> usize
Get the number of distinct field names in this language.
pub fn field_name_for_id(&self, field_id: u16) -> Option<&'static str>
pub fn field_name_for_id(&self, field_id: u16) -> Option<&'static str>
Get the field names for the given numerical id.
pub fn field_id_for_name(&self, field_name: impl AsRef<[u8]>) -> Option<u16>
pub fn field_id_for_name(&self, field_name: impl AsRef<[u8]>) -> Option<u16>
Get the numerical id for the given field name.
Trait Implementations§
source§impl Deref for JAVA_TS_LANG
impl Deref for JAVA_TS_LANG
impl LazyStatic for JAVA_TS_LANG
Auto Trait Implementations§
impl RefUnwindSafe for JAVA_TS_LANG
impl Send for JAVA_TS_LANG
impl Sync for JAVA_TS_LANG
impl Unpin for JAVA_TS_LANG
impl UnwindSafe for JAVA_TS_LANG
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