pub struct FunctionId(pub u32);
Tuple Fields§
§0: u32
Implementations§
Source§impl FunctionId
impl FunctionId
pub fn signature(self, db: &dyn MirDb) -> Rc<FunctionSignature>
pub fn return_type(self, db: &dyn MirDb) -> Option<TypeId>
pub fn linkage(self, db: &dyn MirDb) -> Linkage
pub fn analyzer_func(self, db: &dyn MirDb) -> FunctionId
pub fn body(self, db: &dyn MirDb) -> Rc<FunctionBody>
pub fn module(self, db: &dyn MirDb) -> ModuleId
pub fn is_contract_init(self, db: &dyn MirDb) -> bool
Sourcepub fn type_suffix(&self, db: &dyn MirDb) -> SmolStr
pub fn type_suffix(&self, db: &dyn MirDb) -> SmolStr
Returns a type suffix if a generic function was monomorphized
pub fn name(&self, db: &dyn MirDb) -> SmolStr
Sourcepub fn debug_name(self, db: &dyn MirDb) -> SmolStr
pub fn debug_name(self, db: &dyn MirDb) -> SmolStr
Returns class_name::fn_name
if a function is a method else fn_name
.
pub fn returns_aggregate(self, db: &dyn MirDb) -> bool
Trait Implementations§
Source§impl Clone for FunctionId
impl Clone for FunctionId
Source§fn clone(&self) -> FunctionId
fn clone(&self) -> FunctionId
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 FunctionId
impl Debug for FunctionId
Source§impl Hash for FunctionId
impl Hash for FunctionId
Source§impl InternKey for FunctionId
impl InternKey for FunctionId
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 FunctionId
impl Ord for FunctionId
Source§fn cmp(&self, other: &FunctionId) -> Ordering
fn cmp(&self, other: &FunctionId) -> 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 FunctionId
impl PartialEq for FunctionId
Source§impl PartialOrd for FunctionId
impl PartialOrd for FunctionId
impl Copy for FunctionId
impl Eq for FunctionId
impl StructuralPartialEq for FunctionId
Auto Trait Implementations§
impl Freeze for FunctionId
impl RefUnwindSafe for FunctionId
impl Send for FunctionId
impl Sync for FunctionId
impl Unpin for FunctionId
impl UnwindSafe for FunctionId
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.