pub enum ExpectedRange {
}
Expand description
ExpectedRange
describes a range of values that was expected by a command. In addition
to typical ranges, this enum allows an error to specify that the range of allowed values
corresponds to a particular numeric type (which is a dominant use-case for the
RangeError error type).
Variants§
Trait Implementations§
Source§impl Clone for ExpectedRange
impl Clone for ExpectedRange
Source§fn clone(&self) -> ExpectedRange
fn clone(&self) -> ExpectedRange
Returns a copy 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 ExpectedRange
impl Debug for ExpectedRange
Source§impl<'de> Deserialize<'de> for ExpectedRange
impl<'de> Deserialize<'de> for ExpectedRange
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
Source§impl From<Range<usize>> for ExpectedRange
impl From<Range<usize>> for ExpectedRange
Convert a Rust range into an ExpectedRange.
Source§impl Hash for ExpectedRange
impl Hash for ExpectedRange
Source§impl Ord for ExpectedRange
impl Ord for ExpectedRange
Source§fn cmp(&self, other: &ExpectedRange) -> Ordering
fn cmp(&self, other: &ExpectedRange) -> 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 ExpectedRange
impl PartialEq for ExpectedRange
Source§impl PartialOrd for ExpectedRange
impl PartialOrd for ExpectedRange
Source§impl PrettyDebug for ExpectedRange
impl PrettyDebug for ExpectedRange
fn pretty(&self) -> DebugDocBuilder
fn to_doc(&self) -> DebugDoc
fn pretty_doc( &self, ) -> Doc<'static, BoxDoc<'static, ShellAnnotation>, ShellAnnotation>
fn pretty_builder(&self) -> DocBuilder<'static, BoxAllocator, ShellAnnotation>
Source§fn display(&self) -> String
fn display(&self) -> String
A convenience method that prints out the document without colors in
70 columns. Generally, you should use plain_string or colored_string
if possible, but display() can be useful for trace lines and things
like that, where you don’t have control over the terminal.
fn plain_string(&self, width: usize) -> String
fn colored_string(&self, width: usize) -> String
Source§impl Serialize for ExpectedRange
impl Serialize for ExpectedRange
impl Eq for ExpectedRange
impl StructuralPartialEq for ExpectedRange
Auto Trait Implementations§
impl Freeze for ExpectedRange
impl RefUnwindSafe for ExpectedRange
impl Send for ExpectedRange
impl Sync for ExpectedRange
impl Unpin for ExpectedRange
impl UnwindSafe for ExpectedRange
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> 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.