pub struct LuaSyntaxId { /* private fields */ }Implementations§
Source§impl LuaSyntaxId
impl LuaSyntaxId
pub fn from_ptr(ptr: LuaSyntaxNodePtr) -> Self
pub fn from_node(node: &LuaSyntaxNode) -> Self
pub fn get_kind(&self) -> LuaSyntaxKind
pub fn get_range(&self) -> TextRange
pub fn to_node(&self, tree: &LuaSyntaxTree) -> LuaSyntaxNode
Trait Implementations§
Source§impl Clone for LuaSyntaxId
impl Clone for LuaSyntaxId
Source§fn clone(&self) -> LuaSyntaxId
fn clone(&self) -> LuaSyntaxId
Returns a copy of the value. Read more
1.0.0 · 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 LuaSyntaxId
impl Debug for LuaSyntaxId
Source§impl Hash for LuaSyntaxId
impl Hash for LuaSyntaxId
Source§impl PartialEq for LuaSyntaxId
impl PartialEq for LuaSyntaxId
impl Copy for LuaSyntaxId
impl Eq for LuaSyntaxId
impl StructuralPartialEq for LuaSyntaxId
Auto Trait Implementations§
impl Freeze for LuaSyntaxId
impl RefUnwindSafe for LuaSyntaxId
impl Send for LuaSyntaxId
impl Sync for LuaSyntaxId
impl Unpin for LuaSyntaxId
impl UnwindSafe for LuaSyntaxId
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)