Struct planus_types::intermediate::DeclarationIndex
source · pub struct DeclarationIndex(pub usize);Tuple Fields§
§0: usizeImplementations§
source§impl DeclarationIndex
impl DeclarationIndex
pub const INVALID: DeclarationIndex = _
Trait Implementations§
source§impl Clone for DeclarationIndex
impl Clone for DeclarationIndex
source§fn clone(&self) -> DeclarationIndex
fn clone(&self) -> DeclarationIndex
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 DeclarationIndex
impl Debug for DeclarationIndex
source§impl Display for DeclarationIndex
impl Display for DeclarationIndex
source§impl<'a> From<&'a DeclarationIndex> for DeclarationIndex
impl<'a> From<&'a DeclarationIndex> for DeclarationIndex
source§fn from(decl: &'a DeclarationIndex) -> Self
fn from(decl: &'a DeclarationIndex) -> Self
Converts to this type from the input type.
source§impl<'a, 'b> From<&'b &'a DeclarationIndex> for DeclarationIndex
impl<'a, 'b> From<&'b &'a DeclarationIndex> for DeclarationIndex
source§fn from(decl: &'b &'a DeclarationIndex) -> Self
fn from(decl: &'b &'a DeclarationIndex) -> Self
Converts to this type from the input type.
source§impl Hash for DeclarationIndex
impl Hash for DeclarationIndex
source§impl Ord for DeclarationIndex
impl Ord for DeclarationIndex
source§fn cmp(&self, other: &DeclarationIndex) -> Ordering
fn cmp(&self, other: &DeclarationIndex) -> 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<DeclarationIndex> for DeclarationIndex
impl PartialEq<DeclarationIndex> for DeclarationIndex
source§fn eq(&self, other: &DeclarationIndex) -> bool
fn eq(&self, other: &DeclarationIndex) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd<DeclarationIndex> for DeclarationIndex
impl PartialOrd<DeclarationIndex> for DeclarationIndex
source§fn partial_cmp(&self, other: &DeclarationIndex) -> Option<Ordering>
fn partial_cmp(&self, other: &DeclarationIndex) -> 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 DeclarationIndex
impl Eq for DeclarationIndex
impl StructuralEq for DeclarationIndex
impl StructuralPartialEq for DeclarationIndex
Auto Trait Implementations§
impl RefUnwindSafe for DeclarationIndex
impl Send for DeclarationIndex
impl Sync for DeclarationIndex
impl Unpin for DeclarationIndex
impl UnwindSafe for DeclarationIndex
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.