Struct cranelift_module::DataId
source · pub struct DataId(/* private fields */);
Expand description
A data object identifier for use in the Module
interface.
Implementations§
Trait Implementations§
source§impl From<DataId> for ModuleRelocTarget
impl From<DataId> for ModuleRelocTarget
Data identifiers are namespace 1 in ir::ExternalName
source§impl Ord for DataId
impl Ord for DataId
source§impl PartialEq for DataId
impl PartialEq for DataId
source§impl PartialOrd for DataId
impl PartialOrd for DataId
1.0.0 · source§fn 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 moresource§impl ReservedValue for DataId
impl ReservedValue for DataId
source§fn reserved_value() -> DataId
fn reserved_value() -> DataId
Create an instance of the reserved value.
source§fn is_reserved_value(&self) -> bool
fn is_reserved_value(&self) -> bool
Checks whether value is the reserved one.
impl Copy for DataId
impl Eq for DataId
impl StructuralPartialEq for DataId
Auto Trait Implementations§
impl Freeze for DataId
impl RefUnwindSafe for DataId
impl Send for DataId
impl Sync for DataId
impl Unpin for DataId
impl UnwindSafe for DataId
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> 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§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.