pub enum LuaIndexKey {
Name(LuaNameToken),
String(LuaStringToken),
Integer(LuaNumberToken),
Expr(LuaExpr),
Idx(usize),
}Variants§
Implementations§
Source§impl LuaIndexKey
impl LuaIndexKey
pub fn is_name(&self) -> bool
pub fn is_string(&self) -> bool
pub fn is_integer(&self) -> bool
pub fn is_expr(&self) -> bool
pub fn get_name(&self) -> Option<&LuaNameToken>
pub fn get_string(&self) -> Option<&LuaStringToken>
pub fn get_integer(&self) -> Option<&LuaNumberToken>
pub fn get_expr(&self) -> Option<&LuaExpr>
pub fn get_path_part(&self) -> String
pub fn get_range(&self) -> Option<TextRange>
Trait Implementations§
Source§impl Clone for LuaIndexKey
impl Clone for LuaIndexKey
Source§fn clone(&self) -> LuaIndexKey
fn clone(&self) -> LuaIndexKey
Returns a duplicate 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 LuaIndexKey
impl Debug for LuaIndexKey
Source§impl Hash for LuaIndexKey
impl Hash for LuaIndexKey
Source§impl PartialEq for LuaIndexKey
impl PartialEq for LuaIndexKey
impl Eq for LuaIndexKey
impl StructuralPartialEq for LuaIndexKey
Auto Trait Implementations§
impl Freeze for LuaIndexKey
impl !RefUnwindSafe for LuaIndexKey
impl !Send for LuaIndexKey
impl !Sync for LuaIndexKey
impl Unpin for LuaIndexKey
impl !UnwindSafe for LuaIndexKey
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