pub struct FunctionSigId(/* private fields */);
Implementations§
Source§impl FunctionSigId
impl FunctionSigId
pub fn data(&self, db: &dyn AnalyzerDb) -> Rc<FunctionSig>
pub fn takes_self(&self, db: &dyn AnalyzerDb) -> bool
pub fn self_type(&self, db: &dyn AnalyzerDb) -> Option<TypeId>
pub fn self_span(&self, db: &dyn AnalyzerDb) -> Option<Span>
pub fn signature(&self, db: &dyn AnalyzerDb) -> Rc<FunctionSignature>
pub fn is_public(&self, db: &dyn AnalyzerDb) -> bool
pub fn name(&self, db: &dyn AnalyzerDb) -> SmolStr
pub fn name_span(&self, db: &dyn AnalyzerDb) -> Span
pub fn unsafe_span(&self, db: &dyn AnalyzerDb) -> Option<Span>
pub fn is_constructor(&self, db: &dyn AnalyzerDb) -> bool
pub fn pub_span(&self, db: &dyn AnalyzerDb) -> Option<Span>
pub fn self_item(&self, db: &dyn AnalyzerDb) -> Option<Item>
pub fn parent(&self, db: &dyn AnalyzerDb) -> Item
Sourcepub fn function(&self, db: &dyn AnalyzerDb) -> Option<FunctionId>
pub fn function(&self, db: &dyn AnalyzerDb) -> Option<FunctionId>
Looks up the FunctionId
based on the parent of the function signature
pub fn is_trait_fn(&self, db: &dyn AnalyzerDb) -> bool
pub fn is_module_fn(&self, db: &dyn AnalyzerDb) -> bool
pub fn is_impl_fn(&self, db: &dyn AnalyzerDb) -> bool
pub fn is_generic(&self, db: &dyn AnalyzerDb) -> bool
pub fn generic_params(&self, db: &dyn AnalyzerDb) -> Vec<GenericParameter>
pub fn generic_param( &self, db: &dyn AnalyzerDb, param_name: &str, ) -> Option<GenericParameter>
pub fn module(&self, db: &dyn AnalyzerDb) -> ModuleId
pub fn is_contract_func(self, db: &dyn AnalyzerDb) -> bool
pub fn sink_diagnostics( &self, db: &dyn AnalyzerDb, sink: &mut impl DiagnosticSink, )
Trait Implementations§
Source§impl Clone for FunctionSigId
impl Clone for FunctionSigId
Source§fn clone(&self) -> FunctionSigId
fn clone(&self) -> FunctionSigId
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 FunctionSigId
impl Debug for FunctionSigId
Source§impl Hash for FunctionSigId
impl Hash for FunctionSigId
Source§impl InternKey for FunctionSigId
impl InternKey for FunctionSigId
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 FunctionSigId
impl Ord for FunctionSigId
Source§fn cmp(&self, other: &FunctionSigId) -> Ordering
fn cmp(&self, other: &FunctionSigId) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for FunctionSigId
impl PartialEq for FunctionSigId
Source§impl PartialOrd for FunctionSigId
impl PartialOrd for FunctionSigId
impl Copy for FunctionSigId
impl Eq for FunctionSigId
impl StructuralPartialEq for FunctionSigId
Auto Trait Implementations§
impl Freeze for FunctionSigId
impl RefUnwindSafe for FunctionSigId
impl Send for FunctionSigId
impl Sync for FunctionSigId
impl Unpin for FunctionSigId
impl UnwindSafe for FunctionSigId
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.