Struct scir::InstanceId
source · pub struct InstanceId(/* private fields */);
Expand description
An opaque instance identifier.
An instance ID created in the context of one cell must not be used in the context of another cell. You should instead create a new instance ID in the second cell.
Trait Implementations§
source§impl Clone for InstanceId
impl Clone for InstanceId
source§fn clone(&self) -> InstanceId
fn clone(&self) -> InstanceId
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 InstanceId
impl Debug for InstanceId
source§impl Default for InstanceId
impl Default for InstanceId
source§fn default() -> InstanceId
fn default() -> InstanceId
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for InstanceId
impl<'de> Deserialize<'de> for InstanceId
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 InstanceId
impl Display for InstanceId
source§impl From<InstanceId> for InstancePathElement
impl From<InstanceId> for InstancePathElement
source§fn from(value: InstanceId) -> Self
fn from(value: InstanceId) -> Self
Converts to this type from the input type.
source§impl Hash for InstanceId
impl Hash for InstanceId
source§impl Ord for InstanceId
impl Ord for InstanceId
source§fn cmp(&self, other: &InstanceId) -> Ordering
fn cmp(&self, other: &InstanceId) -> 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 InstanceId
impl PartialEq for InstanceId
source§fn eq(&self, other: &InstanceId) -> bool
fn eq(&self, other: &InstanceId) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for InstanceId
impl PartialOrd for InstanceId
source§fn partial_cmp(&self, other: &InstanceId) -> Option<Ordering>
fn partial_cmp(&self, other: &InstanceId) -> 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 InstanceId
impl Serialize for InstanceId
impl Copy for InstanceId
impl Eq for InstanceId
impl StructuralPartialEq for InstanceId
Auto Trait Implementations§
impl RefUnwindSafe for InstanceId
impl Send for InstanceId
impl Sync for InstanceId
impl Unpin for InstanceId
impl UnwindSafe for InstanceId
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.