pub struct LuaScope { /* private fields */ }Implementations§
Source§impl LuaScope
impl LuaScope
pub fn new(range: TextRange, kind: LuaScopeKind, id: LuaScopeId) -> Self
pub fn add_decl(&mut self, decl: LuaDeclId)
pub fn add_child(&mut self, child: LuaScopeId)
pub fn get_parent(&self) -> Option<LuaScopeId>
pub fn get_children(&self) -> &[ScopeOrDeclId]
pub fn get_range(&self) -> TextRange
pub fn get_kind(&self) -> LuaScopeKind
pub fn get_position(&self) -> TextSize
pub fn get_id(&self) -> LuaScopeId
Trait Implementations§
impl Eq for LuaScope
impl StructuralPartialEq for LuaScope
Auto Trait Implementations§
impl Freeze for LuaScope
impl RefUnwindSafe for LuaScope
impl Send for LuaScope
impl Sync for LuaScope
impl Unpin for LuaScope
impl UnwindSafe for LuaScope
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