Enum cranelift_module::FuncOrDataId
source · [−]Expand description
A declared name may refer to either a function or data declaration
Variants
Func(FuncId)
When it’s a FuncId
Data(DataId)
When it’s a DataId
Trait Implementations
sourceimpl Clone for FuncOrDataId
impl Clone for FuncOrDataId
sourcefn clone(&self) -> FuncOrDataId
fn clone(&self) -> FuncOrDataId
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for FuncOrDataId
impl Debug for FuncOrDataId
sourceimpl From<FuncOrDataId> for ExternalName
impl From<FuncOrDataId> for ExternalName
Mapping to ir::ExternalName is trivial based on the FuncId and DataId mapping.
sourcefn from(id: FuncOrDataId) -> Self
fn from(id: FuncOrDataId) -> Self
Performs the conversion.
sourceimpl Hash for FuncOrDataId
impl Hash for FuncOrDataId
sourceimpl Ord for FuncOrDataId
impl Ord for FuncOrDataId
sourceimpl PartialEq<FuncOrDataId> for FuncOrDataId
impl PartialEq<FuncOrDataId> for FuncOrDataId
sourcefn eq(&self, other: &FuncOrDataId) -> bool
fn eq(&self, other: &FuncOrDataId) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &FuncOrDataId) -> bool
fn ne(&self, other: &FuncOrDataId) -> bool
This method tests for !=.
sourceimpl PartialOrd<FuncOrDataId> for FuncOrDataId
impl PartialOrd<FuncOrDataId> for FuncOrDataId
sourcefn partial_cmp(&self, other: &FuncOrDataId) -> Option<Ordering>
fn partial_cmp(&self, other: &FuncOrDataId) -> Option<Ordering>
This method returns an ordering between self and other values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
impl Copy for FuncOrDataId
impl Eq for FuncOrDataId
impl StructuralEq for FuncOrDataId
impl StructuralPartialEq for FuncOrDataId
Auto Trait Implementations
impl RefUnwindSafe for FuncOrDataId
impl Send for FuncOrDataId
impl Sync for FuncOrDataId
impl Unpin for FuncOrDataId
impl UnwindSafe for FuncOrDataId
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more