pub struct TypesContextKey(/* private fields */);Expand description
Key for context entries (simplified from existing ContextKey).
Uses “Types” prefix to avoid collision with existing ContextKey.
Implementations§
Source§impl TypesContextKey
impl TypesContextKey
Sourcepub fn new(key: impl Into<String>) -> TypesContextKey
pub fn new(key: impl Into<String>) -> TypesContextKey
Create a new context key.
Sourcepub fn seeds() -> TypesContextKey
pub fn seeds() -> TypesContextKey
Create a “seeds” key.
Sourcepub fn hypotheses() -> TypesContextKey
pub fn hypotheses() -> TypesContextKey
Create a “hypotheses” key.
Sourcepub fn strategies() -> TypesContextKey
pub fn strategies() -> TypesContextKey
Create a “strategies” key.
Sourcepub fn constraints() -> TypesContextKey
pub fn constraints() -> TypesContextKey
Create a “constraints” key.
Sourcepub fn signals() -> TypesContextKey
pub fn signals() -> TypesContextKey
Create a “signals” key.
Sourcepub fn observations() -> TypesContextKey
pub fn observations() -> TypesContextKey
Create a “observations” key.
Sourcepub fn proposals() -> TypesContextKey
pub fn proposals() -> TypesContextKey
Create a “proposals” key.
Sourcepub fn facts() -> TypesContextKey
pub fn facts() -> TypesContextKey
Create a “facts” key.
Trait Implementations§
Source§impl Clone for TypesContextKey
impl Clone for TypesContextKey
Source§fn clone(&self) -> TypesContextKey
fn clone(&self) -> TypesContextKey
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 TypesContextKey
impl Debug for TypesContextKey
Source§impl<'de> Deserialize<'de> for TypesContextKey
impl<'de> Deserialize<'de> for TypesContextKey
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<TypesContextKey, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<TypesContextKey, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for TypesContextKey
impl Display for TypesContextKey
Source§impl From<&str> for TypesContextKey
impl From<&str> for TypesContextKey
Source§fn from(s: &str) -> TypesContextKey
fn from(s: &str) -> TypesContextKey
Converts to this type from the input type.
Source§impl From<String> for TypesContextKey
impl From<String> for TypesContextKey
Source§fn from(s: String) -> TypesContextKey
fn from(s: String) -> TypesContextKey
Converts to this type from the input type.
Source§impl Hash for TypesContextKey
impl Hash for TypesContextKey
Source§impl PartialEq for TypesContextKey
impl PartialEq for TypesContextKey
Source§fn eq(&self, other: &TypesContextKey) -> bool
fn eq(&self, other: &TypesContextKey) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for TypesContextKey
impl Serialize for TypesContextKey
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 Eq for TypesContextKey
impl StructuralPartialEq for TypesContextKey
Auto Trait Implementations§
impl Freeze for TypesContextKey
impl RefUnwindSafe for TypesContextKey
impl Send for TypesContextKey
impl Sync for TypesContextKey
impl Unpin for TypesContextKey
impl UnsafeUnpin for TypesContextKey
impl UnwindSafe for TypesContextKey
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.