Struct doc_9_testing_12345::GBP [−][src]
pub struct GBP(pub i32);
Parse your money from a string
use doc_9_testing_12345::*; let g = "£32.45".parse(); assert_eq!(g,Ok(GBP(3245)));
Trait Implementations
impl Debug for GBP
[src]
impl Debug for GBP
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for GBP
[src]
impl PartialEq for GBP
fn eq(&self, other: &GBP) -> bool
[src]
fn eq(&self, other: &GBP) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &GBP) -> bool
[src]
fn ne(&self, other: &GBP) -> bool
This method tests for !=
.
impl FromStr for GBP
[src]
impl FromStr for GBP