Enum cusip::CUSIPError [−][src]
All the ways parsing could fail.
Variants (Non-exhaustive)
The CUSIP length is not exactly 9 bytes (checked when parsing).
Fields of InvalidCUSIPLength
was: usize
The length we found
The Payload length is not exactly 8 bytes (checked when building).
Fields of InvalidPayloadLength
was: usize
The length we found
The Issuer Number length is not exactly 6 bytes (checked when building).
Fields of InvalidIssuerNumLength
was: usize
The length we found
The Issue Number length is not exactly 6 bytes (checked when building).
Fields of InvalidIssueNumLength
was: usize
The length we found
The input issuer id is not six uppercase ASCII alphanumeric characters (checked when parsing or building).
The input issue id is not two uppercase ASCII alphanumeric characters (checked when parsing or building).
The input check digit is not a single ASCII decimal digit character (checked when parsing).
Fields of InvalidCheckDigit
was: u8
The Check Digit we found
The input check digit has in a valid format, but has an incorrect value (checked when parsing).
Fields of IncorrectCheckDigit
Trait Implementations
impl Clone for CUSIPError
[src]
fn clone(&self) -> CUSIPError
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for CUSIPError
[src]
impl Display for CUSIPError
[src]
impl Eq for CUSIPError
[src]
impl Error for CUSIPError
[src]
pub fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]
pub fn backtrace(&self) -> Option<&Backtrace>
[src]
pub fn description(&self) -> &str
1.0.0[src]
pub fn cause(&self) -> Option<&dyn Error>
1.0.0[src]
impl PartialEq<CUSIPError> for CUSIPError
[src]
fn eq(&self, other: &CUSIPError) -> bool
[src]
fn ne(&self, other: &CUSIPError) -> bool
[src]
impl StructuralEq for CUSIPError
[src]
impl StructuralPartialEq for CUSIPError
[src]
Auto Trait Implementations
impl RefUnwindSafe for CUSIPError
impl Send for CUSIPError
impl Sync for CUSIPError
impl Unpin for CUSIPError
impl UnwindSafe for CUSIPError
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,