pub enum FactorError {
EmptyName,
NonFiniteValue,
}Expand description
Errors returned by factor helpers.
Variants§
EmptyName
Names must be non-empty after trimming whitespace.
NonFiniteValue
Exposure and loading values must be finite.
Trait Implementations§
Source§impl Clone for FactorError
impl Clone for FactorError
Source§fn clone(&self) -> FactorError
fn clone(&self) -> FactorError
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 FactorError
impl Debug for FactorError
Source§impl Display for FactorError
impl Display for FactorError
Source§impl Error for FactorError
impl Error for FactorError
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 FactorError
impl PartialEq for FactorError
Source§fn eq(&self, other: &FactorError) -> bool
fn eq(&self, other: &FactorError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for FactorError
impl Eq for FactorError
impl StructuralPartialEq for FactorError
Auto Trait Implementations§
impl Freeze for FactorError
impl RefUnwindSafe for FactorError
impl Send for FactorError
impl Sync for FactorError
impl Unpin for FactorError
impl UnsafeUnpin for FactorError
impl UnwindSafe for FactorError
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