pub struct EnumId(/* private fields */);
Implementations§
Source§impl EnumId
impl EnumId
pub fn data(self, db: &dyn AnalyzerDb) -> Rc<Enum>
pub fn span(self, db: &dyn AnalyzerDb) -> Span
pub fn name(self, db: &dyn AnalyzerDb) -> SmolStr
pub fn name_span(self, db: &dyn AnalyzerDb) -> Span
pub fn as_type(self, db: &dyn AnalyzerDb) -> TypeId
pub fn is_public(self, db: &dyn AnalyzerDb) -> bool
pub fn variant(self, db: &dyn AnalyzerDb, name: &str) -> Option<EnumVariantId>
pub fn variants( self, db: &dyn AnalyzerDb, ) -> Rc<IndexMap<SmolStr, EnumVariantId>>
pub fn module(self, db: &dyn AnalyzerDb) -> ModuleId
pub fn parent(self, db: &dyn AnalyzerDb) -> Item
pub fn dependency_graph(self, db: &dyn AnalyzerDb) -> Rc<DepGraph>
pub fn all_functions(&self, db: &dyn AnalyzerDb) -> Rc<[FunctionId]>
pub fn functions( &self, db: &dyn AnalyzerDb, ) -> Rc<IndexMap<SmolStr, FunctionId>>
pub fn function(&self, db: &dyn AnalyzerDb, name: &str) -> Option<FunctionId>
pub fn sink_diagnostics( self, db: &dyn AnalyzerDb, sink: &mut impl DiagnosticSink, )
Trait Implementations§
Source§impl InternKey for EnumId
impl InternKey for EnumId
Source§fn from_intern_id(v: InternId) -> Self
fn from_intern_id(v: InternId) -> Self
Create an instance of the intern-key from a
u32
value.Source§fn as_intern_id(&self) -> InternId
fn as_intern_id(&self) -> InternId
Extract the
u32
with which the intern-key was created.Source§impl Ord for EnumId
impl Ord for EnumId
Source§impl PartialOrd for EnumId
impl PartialOrd for EnumId
impl Copy for EnumId
impl Eq for EnumId
impl StructuralPartialEq for EnumId
Auto Trait Implementations§
impl Freeze for EnumId
impl RefUnwindSafe for EnumId
impl Send for EnumId
impl Sync for EnumId
impl Unpin for EnumId
impl UnwindSafe for EnumId
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,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<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.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.