pub struct LuaAstPtr<T: LuaAstNode> {
pub syntax_id: LuaSyntaxId,
/* private fields */
}Fields§
§syntax_id: LuaSyntaxIdImplementations§
Source§impl<T: LuaAstNode> LuaAstPtr<T>
impl<T: LuaAstNode> LuaAstPtr<T>
pub fn new(node: &T) -> Self
pub fn get_syntax_id(&self) -> LuaSyntaxId
pub fn to_node(&self, root: &LuaChunk) -> Option<T>
Trait Implementations§
impl<T: Copy + LuaAstNode> Copy for LuaAstPtr<T>
impl<T: Eq + LuaAstNode> Eq for LuaAstPtr<T>
impl<T: LuaAstNode> Send for LuaAstPtr<T>
impl<T: LuaAstNode> StructuralPartialEq for LuaAstPtr<T>
impl<T: LuaAstNode> Sync for LuaAstPtr<T>
Auto Trait Implementations§
impl<T> Freeze for LuaAstPtr<T>
impl<T> RefUnwindSafe for LuaAstPtr<T>where
T: RefUnwindSafe,
impl<T> Unpin for LuaAstPtr<T>where
T: Unpin,
impl<T> UnwindSafe for LuaAstPtr<T>where
T: UnwindSafe,
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more