Enum CreditVolError
#[non_exhaustive]pub enum CreditVolError {
Empty,
Expiry(f64),
Vol(f64),
ParameterCount {
expected: usize,
given: usize,
},
}Expand description
A credit vol surface that cannot be built as specified.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Empty
No points.
Expiry(f64)
An expiry not strictly increasing and positive, in years.
Vol(f64)
A vol that is not finite and strictly positive.
ParameterCount
Lifted parameters whose count is not the surface’s point count.
Trait Implementations§
§impl Clone for CreditVolError
impl Clone for CreditVolError
§fn clone(&self) -> CreditVolError
fn clone(&self) -> CreditVolError
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 moreimpl Copy for CreditVolError
§impl Debug for CreditVolError
impl Debug for CreditVolError
§impl Display for CreditVolError
impl Display for CreditVolError
§impl Error for CreditVolError
impl Error for CreditVolError
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()
§impl PartialEq for CreditVolError
impl PartialEq for CreditVolError
impl StructuralPartialEq for CreditVolError
Auto Trait Implementations§
impl Freeze for CreditVolError
impl RefUnwindSafe for CreditVolError
impl Send for CreditVolError
impl Sync for CreditVolError
impl Unpin for CreditVolError
impl UnsafeUnpin for CreditVolError
impl UnwindSafe for CreditVolError
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