Enum cairo_lang_defs::ids::FunctionWithBodyId
source · pub enum FunctionWithBodyId {
Free(FreeFunctionId),
Impl(ImplFunctionId),
}
Expand description
Represents a function that has a body.
Variants§
Free(FreeFunctionId)
Impl(ImplFunctionId)
Implementations§
Trait Implementations§
source§impl Clone for FunctionWithBodyId
impl Clone for FunctionWithBodyId
source§fn clone(&self) -> FunctionWithBodyId
fn clone(&self) -> FunctionWithBodyId
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 FunctionWithBodyId
impl Debug for FunctionWithBodyId
source§impl<T: ?Sized + Upcast<dyn DefsGroup + 'static>> DebugWithDb<T> for FunctionWithBodyId
impl<T: ?Sized + Upcast<dyn DefsGroup + 'static>> DebugWithDb<T> for FunctionWithBodyId
source§impl Hash for FunctionWithBodyId
impl Hash for FunctionWithBodyId
source§impl LanguageElementId for FunctionWithBodyId
impl LanguageElementId for FunctionWithBodyId
fn module_file_id(&self, db: &dyn DefsGroup) -> ModuleFileId
fn untyped_stable_ptr(&self, db: &dyn DefsGroup) -> SyntaxStablePtrId
fn stable_location(&self, db: &dyn DefsGroup) -> StableLocation
fn parent_module(&self, db: &dyn DefsGroup) -> ModuleId
fn file_index(&self, db: &dyn DefsGroup) -> FileIndex
source§impl OptionFrom<FunctionWithBodyId> for FreeFunctionId
impl OptionFrom<FunctionWithBodyId> for FreeFunctionId
fn option_from(other: FunctionWithBodyId) -> Option<Self>
source§impl OptionFrom<FunctionWithBodyId> for ImplFunctionId
impl OptionFrom<FunctionWithBodyId> for ImplFunctionId
fn option_from(other: FunctionWithBodyId) -> Option<Self>
source§impl PartialEq for FunctionWithBodyId
impl PartialEq for FunctionWithBodyId
source§fn eq(&self, other: &FunctionWithBodyId) -> bool
fn eq(&self, other: &FunctionWithBodyId) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for FunctionWithBodyId
impl Eq for FunctionWithBodyId
impl StructuralEq for FunctionWithBodyId
impl StructuralPartialEq for FunctionWithBodyId
Auto Trait Implementations§
impl RefUnwindSafe for FunctionWithBodyId
impl Send for FunctionWithBodyId
impl Sync for FunctionWithBodyId
impl Unpin for FunctionWithBodyId
impl UnwindSafe for FunctionWithBodyId
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.