Struct scir::PrimitiveId
source · pub struct PrimitiveId(/* private fields */);
Expand description
An opaque primitive identifier.
A primitive ID created in the context of one library must not be used in the context of another library. You should instead create a new primitive ID in the second library.
Trait Implementations§
source§impl Clone for PrimitiveId
impl Clone for PrimitiveId
source§fn clone(&self) -> PrimitiveId
fn clone(&self) -> PrimitiveId
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 PrimitiveId
impl Debug for PrimitiveId
source§impl<'de> Deserialize<'de> for PrimitiveId
impl<'de> Deserialize<'de> for PrimitiveId
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for PrimitiveId
impl Display for PrimitiveId
source§impl From<PrimitiveId> for ChildId
impl From<PrimitiveId> for ChildId
source§fn from(value: PrimitiveId) -> Self
fn from(value: PrimitiveId) -> Self
Converts to this type from the input type.
source§impl Hash for PrimitiveId
impl Hash for PrimitiveId
source§impl Ord for PrimitiveId
impl Ord for PrimitiveId
source§fn cmp(&self, other: &PrimitiveId) -> Ordering
fn cmp(&self, other: &PrimitiveId) -> 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 PrimitiveId
impl PartialEq for PrimitiveId
source§fn eq(&self, other: &PrimitiveId) -> bool
fn eq(&self, other: &PrimitiveId) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for PrimitiveId
impl PartialOrd for PrimitiveId
source§fn partial_cmp(&self, other: &PrimitiveId) -> Option<Ordering>
fn partial_cmp(&self, other: &PrimitiveId) -> 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 moresource§impl Serialize for PrimitiveId
impl Serialize for PrimitiveId
impl Copy for PrimitiveId
impl Eq for PrimitiveId
impl StructuralPartialEq for PrimitiveId
Auto Trait Implementations§
impl RefUnwindSafe for PrimitiveId
impl Send for PrimitiveId
impl Sync for PrimitiveId
impl Unpin for PrimitiveId
impl UnwindSafe for PrimitiveId
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> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§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 Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.