pub struct SelectionItem(/* private fields */);Expand description
A validated member of a selection domain.
Items are non-empty UTF-8 strings with no ASCII control characters.
Constructor-side validation means a SelectionItem is always safe to
hash into a canonical form.
Implementations§
Trait Implementations§
Source§impl AsRef<str> for SelectionItem
impl AsRef<str> for SelectionItem
Source§impl Clone for SelectionItem
impl Clone for SelectionItem
Source§fn clone(&self) -> SelectionItem
fn clone(&self) -> SelectionItem
Returns a duplicate 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 SelectionItem
impl Debug for SelectionItem
Source§impl<'de> Deserialize<'de> for SelectionItem
impl<'de> Deserialize<'de> for SelectionItem
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for SelectionItem
impl Display for SelectionItem
Source§impl Hash for SelectionItem
impl Hash for SelectionItem
Source§impl Ord for SelectionItem
impl Ord for SelectionItem
Source§fn cmp(&self, other: &SelectionItem) -> Ordering
fn cmp(&self, other: &SelectionItem) -> 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 SelectionItem
impl PartialEq for SelectionItem
Source§impl PartialOrd for SelectionItem
impl PartialOrd for SelectionItem
Source§impl Serialize for SelectionItem
impl Serialize for SelectionItem
impl Eq for SelectionItem
impl StructuralPartialEq for SelectionItem
Auto Trait Implementations§
impl Freeze for SelectionItem
impl RefUnwindSafe for SelectionItem
impl Send for SelectionItem
impl Sync for SelectionItem
impl Unpin for SelectionItem
impl UnsafeUnpin for SelectionItem
impl UnwindSafe for SelectionItem
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
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.