#[non_exhaustive]pub enum ParseSymbolError {
InvalidSymbol(char),
UnknownExchange,
UnknownClass,
InvalidId(Error),
InvalidFormat,
}Expand description
An enumeration of all possible symbol parsing errors.
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.
InvalidSymbol(char)
The symbol contains an invalid character.
UnknownExchange
The exchange is unknown.
UnknownClass
The asset class is unknown.
InvalidId(Error)
The ID could not be parsed.
InvalidFormat
The symbol has an invalid/unrecognized format.
Trait Implementations§
Source§impl Clone for ParseSymbolError
impl Clone for ParseSymbolError
Source§fn clone(&self) -> ParseSymbolError
fn clone(&self) -> ParseSymbolError
Returns a duplicate of the value. Read more
1.0.0 · 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 ParseSymbolError
impl Debug for ParseSymbolError
Source§impl Display for ParseSymbolError
impl Display for ParseSymbolError
Source§impl PartialEq for ParseSymbolError
impl PartialEq for ParseSymbolError
impl Eq for ParseSymbolError
impl StructuralPartialEq for ParseSymbolError
Auto Trait Implementations§
impl Freeze for ParseSymbolError
impl RefUnwindSafe for ParseSymbolError
impl Send for ParseSymbolError
impl Sync for ParseSymbolError
impl Unpin for ParseSymbolError
impl UnwindSafe for ParseSymbolError
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