pub enum RatingError {
NonFinite,
Negative,
}Expand description
Errors returned while constructing rating values.
Variants§
NonFinite
The rating value was not finite.
Negative
The rating value was negative where only non-negative values make sense.
Trait Implementations§
Source§impl Clone for RatingError
impl Clone for RatingError
Source§fn clone(&self) -> RatingError
fn clone(&self) -> RatingError
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 RatingError
impl Debug for RatingError
Source§impl Display for RatingError
impl Display for RatingError
Source§impl Error for RatingError
impl Error for RatingError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for RatingError
impl PartialEq for RatingError
Source§fn eq(&self, other: &RatingError) -> bool
fn eq(&self, other: &RatingError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for RatingError
impl Eq for RatingError
impl StructuralPartialEq for RatingError
Auto Trait Implementations§
impl Freeze for RatingError
impl RefUnwindSafe for RatingError
impl Send for RatingError
impl Sync for RatingError
impl Unpin for RatingError
impl UnsafeUnpin for RatingError
impl UnwindSafe for RatingError
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