pub struct LuaTypeDecl { /* private fields */ }Implementations§
Source§impl LuaTypeDecl
impl LuaTypeDecl
pub fn new( file_id: FileId, range: TextRange, name: String, kind: LuaDeclTypeKind, attrib: Option<FlagSet<LuaTypeAttribute>>, id: LuaTypeDeclId, ) -> Self
pub fn get_file_ids(&self) -> Vec<FileId>
pub fn get_locations(&self) -> &[LuaDeclLocation]
pub fn get_mut_locations(&mut self) -> &mut Vec<LuaDeclLocation>
pub fn get_name(&self) -> &str
pub fn get_kind(&self) -> LuaDeclTypeKind
pub fn is_class(&self) -> bool
pub fn is_enum(&self) -> bool
pub fn is_alias(&self) -> bool
pub fn get_attrib(&self) -> Option<FlagSet<LuaTypeAttribute>>
pub fn is_exact(&self) -> bool
pub fn is_partial(&self) -> bool
pub fn is_enum_key(&self) -> bool
pub fn get_id(&self) -> LuaTypeDeclId
pub fn get_full_name(&self) -> &str
pub fn get_namespace(&self) -> Option<&str>
pub fn is_alias_union(&self) -> bool
pub fn is_alias_replace(&self) -> bool
pub fn get_alias_origin(&self) -> Option<&LuaType>
pub fn get_alias_union_members(&self) -> Option<&[LuaMemberId]>
pub fn add_alias_union_members(&mut self, member_ids: Vec<LuaMemberId>)
pub fn add_alias_origin(&mut self, replace: LuaType)
pub fn add_enum_base(&mut self, base_type: LuaType)
Trait Implementations§
Source§impl Clone for LuaTypeDecl
impl Clone for LuaTypeDecl
Source§fn clone(&self) -> LuaTypeDecl
fn clone(&self) -> LuaTypeDecl
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 LuaTypeDecl
impl Debug for LuaTypeDecl
Source§impl PartialEq for LuaTypeDecl
impl PartialEq for LuaTypeDecl
impl Eq for LuaTypeDecl
impl StructuralPartialEq for LuaTypeDecl
Auto Trait Implementations§
impl Freeze for LuaTypeDecl
impl RefUnwindSafe for LuaTypeDecl
impl Send for LuaTypeDecl
impl Sync for LuaTypeDecl
impl Unpin for LuaTypeDecl
impl UnwindSafe for LuaTypeDecl
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