pub struct CanonicalStandardPropertyNameV0(/* private fields */);Expand description
A sealed standard-property lookup key.
Raw strings cannot borrow through this key; callers must construct a canonical key before a map lookup.
ⓘ
use std::collections::BTreeMap;
use omena_syntax::ident::{CanonicalStandardPropertyNameV0, PropertyNameV0};
let values = BTreeMap::<CanonicalStandardPropertyNameV0, usize>::new();
let _ = values.get("COLOR");
let _ = PropertyNameV0::canonical_standard_key("color");Implementations§
Trait Implementations§
Source§impl Clone for CanonicalStandardPropertyNameV0
impl Clone for CanonicalStandardPropertyNameV0
Source§fn clone(&self) -> CanonicalStandardPropertyNameV0
fn clone(&self) -> CanonicalStandardPropertyNameV0
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 CanonicalStandardPropertyNameV0
impl<'de> Deserialize<'de> for CanonicalStandardPropertyNameV0
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 CanonicalStandardPropertyNameV0
Source§impl Ord for CanonicalStandardPropertyNameV0
impl Ord for CanonicalStandardPropertyNameV0
Source§fn cmp(&self, other: &CanonicalStandardPropertyNameV0) -> Ordering
fn cmp(&self, other: &CanonicalStandardPropertyNameV0) -> 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 CanonicalStandardPropertyNameV0
impl PartialOrd for CanonicalStandardPropertyNameV0
impl StructuralPartialEq for CanonicalStandardPropertyNameV0
Auto Trait Implementations§
impl Freeze for CanonicalStandardPropertyNameV0
impl RefUnwindSafe for CanonicalStandardPropertyNameV0
impl Send for CanonicalStandardPropertyNameV0
impl Sync for CanonicalStandardPropertyNameV0
impl Unpin for CanonicalStandardPropertyNameV0
impl UnsafeUnpin for CanonicalStandardPropertyNameV0
impl UnwindSafe for CanonicalStandardPropertyNameV0
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.