pub struct QueryLabel(/* private fields */);Implementations§
Source§impl QueryLabel
impl QueryLabel
Sourcepub fn new(input: impl AsRef<str>) -> Result<QueryLabel, QueryError>
pub fn new(input: impl AsRef<str>) -> Result<QueryLabel, QueryError>
Creates a query metadata label.
§Errors
Returns QueryError when the label is empty or contains control characters.
Trait Implementations§
Source§impl Clone for QueryLabel
impl Clone for QueryLabel
Source§fn clone(&self) -> QueryLabel
fn clone(&self) -> QueryLabel
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 QueryLabel
impl Debug for QueryLabel
Source§impl Display for QueryLabel
impl Display for QueryLabel
Source§impl Hash for QueryLabel
impl Hash for QueryLabel
Source§impl Ord for QueryLabel
impl Ord for QueryLabel
Source§fn cmp(&self, other: &QueryLabel) -> Ordering
fn cmp(&self, other: &QueryLabel) -> 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
Source§impl PartialEq for QueryLabel
impl PartialEq for QueryLabel
Source§fn eq(&self, other: &QueryLabel) -> bool
fn eq(&self, other: &QueryLabel) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for QueryLabel
impl PartialOrd for QueryLabel
impl Eq for QueryLabel
impl StructuralPartialEq for QueryLabel
Auto Trait Implementations§
impl Freeze for QueryLabel
impl RefUnwindSafe for QueryLabel
impl Send for QueryLabel
impl Sync for QueryLabel
impl Unpin for QueryLabel
impl UnsafeUnpin for QueryLabel
impl UnwindSafe for QueryLabel
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