Enum cairo_lang_lowering::ids::FunctionLongId
source · pub enum FunctionLongId {
Semantic(FunctionId),
Generated(GeneratedFunction),
}
Expand description
Function.
Variants§
Semantic(FunctionId)
An original function from the user code.
Generated(GeneratedFunction)
A function generated by the compiler.
Implementations§
source§impl FunctionLongId
impl FunctionLongId
pub fn body( &self, db: &dyn LoweringGroup ) -> Maybe<Option<ConcreteFunctionWithBodyId>>
pub fn signature(&self, db: &dyn LoweringGroup) -> Maybe<Signature>
Trait Implementations§
source§impl Clone for FunctionLongId
impl Clone for FunctionLongId
source§fn clone(&self) -> FunctionLongId
fn clone(&self) -> FunctionLongId
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 FunctionLongId
impl Debug for FunctionLongId
source§impl<'a> DebugWithDb<dyn LoweringGroup + 'a> for FunctionLongId
impl<'a> DebugWithDb<dyn LoweringGroup + 'a> for FunctionLongId
source§impl Hash for FunctionLongId
impl Hash for FunctionLongId
source§impl PartialEq for FunctionLongId
impl PartialEq for FunctionLongId
source§fn eq(&self, other: &FunctionLongId) -> bool
fn eq(&self, other: &FunctionLongId) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for FunctionLongId
impl Eq for FunctionLongId
impl StructuralEq for FunctionLongId
impl StructuralPartialEq for FunctionLongId
Auto Trait Implementations§
impl RefUnwindSafe for FunctionLongId
impl Send for FunctionLongId
impl Sync for FunctionLongId
impl Unpin for FunctionLongId
impl UnwindSafe for FunctionLongId
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<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
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 Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§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 Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.