pub struct CanonicalCustomPropertyNameV0(/* private fields */);Expand description
A sealed custom-property lookup key.
ⓘ
use std::collections::BTreeMap;
use omena_syntax::ident::{CanonicalCustomPropertyNameV0, PropertyNameV0};
let values = BTreeMap::<CanonicalCustomPropertyNameV0, usize>::new();
let _ = values.get("--token");
let _ = PropertyNameV0::canonical_custom_key("--token");Implementations§
Trait Implementations§
Source§impl Clone for CanonicalCustomPropertyNameV0
impl Clone for CanonicalCustomPropertyNameV0
Source§fn clone(&self) -> CanonicalCustomPropertyNameV0
fn clone(&self) -> CanonicalCustomPropertyNameV0
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<'de> Deserialize<'de> for CanonicalCustomPropertyNameV0
impl<'de> Deserialize<'de> for CanonicalCustomPropertyNameV0
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
impl Eq for CanonicalCustomPropertyNameV0
Source§impl Hash for CanonicalCustomPropertyNameV0
impl Hash for CanonicalCustomPropertyNameV0
Source§impl Ord for CanonicalCustomPropertyNameV0
impl Ord for CanonicalCustomPropertyNameV0
Source§fn cmp(&self, other: &CanonicalCustomPropertyNameV0) -> Ordering
fn cmp(&self, other: &CanonicalCustomPropertyNameV0) -> 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 PartialOrd for CanonicalCustomPropertyNameV0
impl PartialOrd for CanonicalCustomPropertyNameV0
impl StructuralPartialEq for CanonicalCustomPropertyNameV0
Auto Trait Implementations§
impl Freeze for CanonicalCustomPropertyNameV0
impl RefUnwindSafe for CanonicalCustomPropertyNameV0
impl Send for CanonicalCustomPropertyNameV0
impl Sync for CanonicalCustomPropertyNameV0
impl Unpin for CanonicalCustomPropertyNameV0
impl UnsafeUnpin for CanonicalCustomPropertyNameV0
impl UnwindSafe for CanonicalCustomPropertyNameV0
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> 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§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.