Struct debris_common::compile_context::CompilationId
source · pub struct CompilationId(pub u32);
Expand description
The id of the current compilation unit. Used to generate ids that are unique across all compilation units
Tuple Fields§
§0: u32
Trait Implementations§
source§impl Clone for CompilationId
impl Clone for CompilationId
source§fn clone(&self) -> CompilationId
fn clone(&self) -> CompilationId
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 CompilationId
impl Debug for CompilationId
source§impl Hash for CompilationId
impl Hash for CompilationId
source§impl Ord for CompilationId
impl Ord for CompilationId
source§fn cmp(&self, other: &CompilationId) -> Ordering
fn cmp(&self, other: &CompilationId) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for CompilationId
impl PartialEq for CompilationId
source§fn eq(&self, other: &CompilationId) -> bool
fn eq(&self, other: &CompilationId) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for CompilationId
impl PartialOrd for CompilationId
source§fn partial_cmp(&self, other: &CompilationId) -> Option<Ordering>
fn partial_cmp(&self, other: &CompilationId) -> Option<Ordering>
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 moreimpl Copy for CompilationId
impl Eq for CompilationId
impl StructuralEq for CompilationId
impl StructuralPartialEq for CompilationId
Auto Trait Implementations§
impl RefUnwindSafe for CompilationId
impl Send for CompilationId
impl Sync for CompilationId
impl Unpin for CompilationId
impl UnwindSafe for CompilationId
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
§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.