Enum FxIndexError
#[non_exhaustive]pub enum FxIndexError {
Convention(String),
BadPair(String),
NonDayLag(String),
}Expand description
Error constructing an FxIndex or deriving one of its dates.
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.
Convention(String)
Pair-convention resolution failed (message from the conventions layer).
BadPair(String)
A pair symbol did not parse into two currencies (expects "EURUSD" form).
NonDayLag(String)
The spec’s fixing lag is not expressible in whole days.
Trait Implementations§
§impl Clone for FxIndexError
impl Clone for FxIndexError
§fn clone(&self) -> FxIndexError
fn clone(&self) -> FxIndexError
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 more§impl Debug for FxIndexError
impl Debug for FxIndexError
§impl Display for FxIndexError
impl Display for FxIndexError
impl Eq for FxIndexError
§impl Error for FxIndexError
impl Error for FxIndexError
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 From<VocabularyParseError> for FxIndexError
impl From<VocabularyParseError> for FxIndexError
§fn from(e: VocabularyParseError) -> Self
fn from(e: VocabularyParseError) -> Self
Converts to this type from the input type.
§impl PartialEq for FxIndexError
impl PartialEq for FxIndexError
impl StructuralPartialEq for FxIndexError
Auto Trait Implementations§
impl Freeze for FxIndexError
impl RefUnwindSafe for FxIndexError
impl Send for FxIndexError
impl Sync for FxIndexError
impl Unpin for FxIndexError
impl UnsafeUnpin for FxIndexError
impl UnwindSafe for FxIndexError
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