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