pub struct ObligationId(pub String);Expand description
Stable identifier of an obligation: the canonical JSON of its value.
Two obligations with the same identifier in one view are a map defect (spec §8.4). Parameterized obligations therefore carry their entity ids.
Tuple Fields§
§0: StringImplementations§
Trait Implementations§
Source§impl Clone for ObligationId
impl Clone for ObligationId
Source§fn clone(&self) -> ObligationId
fn clone(&self) -> ObligationId
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ObligationId
impl Debug for ObligationId
Source§impl<'de> Deserialize<'de> for ObligationId
impl<'de> Deserialize<'de> for ObligationId
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ObligationId, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ObligationId, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for ObligationId
impl Display for ObligationId
impl Eq for ObligationId
Source§impl Hash for ObligationId
impl Hash for ObligationId
Source§impl Ord for ObligationId
impl Ord for ObligationId
Source§fn cmp(&self, other: &ObligationId) -> Ordering
fn cmp(&self, other: &ObligationId) -> Ordering
1.21.0 (const: unstable) · 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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for ObligationId
impl PartialEq for ObligationId
Source§impl PartialOrd for ObligationId
impl PartialOrd for ObligationId
Source§impl Serialize for ObligationId
impl Serialize for ObligationId
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for ObligationId
Auto Trait Implementations§
impl Freeze for ObligationId
impl RefUnwindSafe for ObligationId
impl Send for ObligationId
impl Sync for ObligationId
impl Unpin for ObligationId
impl UnsafeUnpin for ObligationId
impl UnwindSafe for ObligationId
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.