pub struct LuaDecl {
    pub extra: LuaDeclExtra,
    /* private fields */
}Fields§
§extra: LuaDeclExtraImplementations§
Source§impl LuaDecl
 
impl LuaDecl
pub fn new( name: &str, file_id: FileId, range: TextRange, extra: LuaDeclExtra, expr_id: Option<LuaSyntaxId>, ) -> Self
pub fn get_file_id(&self) -> FileId
pub fn get_id(&self) -> LuaDeclId
pub fn get_name(&self) -> &str
pub fn get_position(&self) -> TextSize
pub fn get_range(&self) -> TextRange
pub fn get_syntax_id(&self) -> LuaSyntaxId
pub fn get_value_syntax_id(&self) -> Option<LuaSyntaxId>
pub fn is_local(&self) -> bool
pub fn is_param(&self) -> bool
pub fn is_global(&self) -> bool
Trait Implementations§
impl Eq for LuaDecl
impl StructuralPartialEq for LuaDecl
Auto Trait Implementations§
impl Freeze for LuaDecl
impl RefUnwindSafe for LuaDecl
impl Send for LuaDecl
impl Sync for LuaDecl
impl Unpin for LuaDecl
impl UnwindSafe for LuaDecl
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§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