Struct cretonne_module::DataId [−][src]
pub struct DataId(_);
A data object identifier for use in the Module
interface.
Trait Implementations
impl Copy for DataId
[src]
impl Copy for DataId
impl Clone for DataId
[src]
impl Clone for DataId
fn clone(&self) -> DataId
[src]
fn clone(&self) -> DataId
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl PartialEq for DataId
[src]
impl PartialEq for DataId
fn eq(&self, other: &DataId) -> bool
[src]
fn eq(&self, other: &DataId) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &DataId) -> bool
[src]
fn ne(&self, other: &DataId) -> bool
This method tests for !=
.
impl Eq for DataId
[src]
impl Eq for DataId
impl Hash for DataId
[src]
impl Hash for DataId
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl PartialOrd for DataId
[src]
impl PartialOrd for DataId
fn partial_cmp(&self, other: &DataId) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &DataId) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &DataId) -> bool
[src]
fn lt(&self, other: &DataId) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &DataId) -> bool
[src]
fn le(&self, other: &DataId) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &DataId) -> bool
[src]
fn gt(&self, other: &DataId) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &DataId) -> bool
[src]
fn ge(&self, other: &DataId) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Ord for DataId
[src]
impl Ord for DataId
fn cmp(&self, other: &DataId) -> Ordering
[src]
fn cmp(&self, other: &DataId) -> Ordering
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
1.21.0[src]
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
impl EntityRef for DataId
impl EntityRef for DataId
fn new(index: usize) -> Self
fn new(index: usize) -> Self
Create a new entity reference from a small integer. This should crash if the requested index is not representable. Read more
fn index(self) -> usize
fn index(self) -> usize
Get the index that was used to create this entity reference.
impl ReservedValue for DataId
impl ReservedValue for DataId
fn reserved_value() -> DataId
fn reserved_value() -> DataId
Create an instance of the reserved value.
impl Display for DataId
impl Display for DataId
impl Debug for DataId
impl Debug for DataId
impl From<DataId> for ExternalName
[src]
impl From<DataId> for ExternalName
Data identifiers are namespace 1 in ir::ExternalName