pub enum PreferenceError<E> {
Config(String),
Eval(E),
}Expand description
Error type for fallible preference evaluation paths.
Variants§
Config(String)
Invalid configuration or optimisation input.
Eval(E)
Evaluation failure raised by the caller-supplied utility function.
Trait Implementations§
Auto Trait Implementations§
impl<E> Freeze for PreferenceError<E>where
E: Freeze,
impl<E> RefUnwindSafe for PreferenceError<E>where
E: RefUnwindSafe,
impl<E> Send for PreferenceError<E>where
E: Send,
impl<E> Sync for PreferenceError<E>where
E: Sync,
impl<E> Unpin for PreferenceError<E>where
E: Unpin,
impl<E> UnsafeUnpin for PreferenceError<E>where
E: UnsafeUnpin,
impl<E> UnwindSafe for PreferenceError<E>where
E: UnwindSafe,
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