Struct cusip::CUSIP[][src]

#[repr(transparent)]pub struct CUSIP(_);

A CUSIP in confirmed valid format.

Implementations

impl CUSIP[src]

pub fn is_cins(&self) -> bool[src]

Returns true if this CUSIP number is actually a CUSIP International Numbering System (CINS) number, false otherwise (i.e., that it has a letter as the first character of its issuer number). See also is_cins_base() and is_cins_extended().

pub fn is_cins_base(&self) -> bool[src]

Returns true if this CUSIP identifier is actually a CUSIP International Numbering System (CINS) identifier (with the further restriction that it does not use ‘I’, ‘O’ or ‘Z’ as its country code), false otherwise. See also is_cins() and is_cins_extended().

pub fn is_cins_extended(&self) -> bool[src]

Returns true if this CUSIP identifier is actually a CUSIP International Numbering System (CINS) identifier (with the further restriction that it does use ‘I’, ‘O’ or ‘Z’ as its country code), false otherwise.

pub fn cins_country_code(&self) -> Option<char>[src]

Returns Some(c) containing the first character of the CUSIP if it is actually a CUSIP International Numbering System (CINS) identifier, None otherwise.

pub fn issuer_num(&self) -> &str[src]

Return just the Issuer Number portion of the CUSIP.

pub fn has_private_issuer(&self) -> bool[src]

Returns true if the Issuer Number is reserved for private use.

pub fn issue_num(&self) -> &str[src]

Return just the Issue Number portion of the CUSIP.

pub fn is_private_issue(&self) -> bool[src]

Returns true if the Issue Number is reserved for private use.

pub fn is_private_use(&self) -> bool[src]

Returns true if the CUSIP is reserved for private use (i.e., either it has a private issuer or it is a private issue).

pub fn payload(&self) -> &str[src]

Return the Payload — everything except the Check Digit.

pub fn check_digit(&self) -> char[src]

Return just the Check Digit portion of the CUSIP.

Trait Implementations

impl Clone for CUSIP[src]

impl Debug for CUSIP[src]

impl Display for CUSIP[src]

impl Eq for CUSIP[src]

impl FromStr for CUSIP[src]

type Err = CUSIPError

The associated error which can be returned from parsing.

impl Hash for CUSIP[src]

impl Ord for CUSIP[src]

impl PartialEq<CUSIP> for CUSIP[src]

impl PartialOrd<CUSIP> for CUSIP[src]

impl StructuralEq for CUSIP[src]

impl StructuralPartialEq for CUSIP[src]

Auto Trait Implementations

impl RefUnwindSafe for CUSIP

impl Send for CUSIP

impl Sync for CUSIP

impl Unpin for CUSIP

impl UnwindSafe for CUSIP

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.