Struct cusip::CUSIP [−][src]
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.
fn from_str(s: &str) -> Result<Self, Self::Err>
[src]
impl Hash for CUSIP
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Ord for CUSIP
[src]
fn cmp(&self, other: &CUSIP) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl PartialEq<CUSIP> for CUSIP
[src]
impl PartialOrd<CUSIP> for CUSIP
[src]
fn partial_cmp(&self, other: &CUSIP) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[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]
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>,