Struct isbn::Isbn13
[−]
[src]
pub struct Isbn13 { /* fields omitted */ }
13-digit ISBN format.
Methods
impl Isbn13
[src]
fn new(
a: u8,
b: u8,
c: u8,
d: u8,
e: u8,
f: u8,
g: u8,
h: u8,
i: u8,
j: u8,
k: u8,
l: u8,
m: u8
) -> Isbn13
a: u8,
b: u8,
c: u8,
d: u8,
e: u8,
f: u8,
g: u8,
h: u8,
i: u8,
j: u8,
k: u8,
l: u8,
m: u8
) -> Isbn13
Creates a new ISBN13 code from 13 digits.
Examples
use isbn::Isbn13; let isbn13 = Isbn13::new(9, 7, 8, 3, 1, 6, 1, 4, 8, 4, 1, 0, 0);
fn is_valid(&self) -> bool
Returns true
if this is a valid ISBN13 code.
Trait Implementations
impl Debug for Isbn13
[src]
impl PartialEq for Isbn13
[src]
fn eq(&self, __arg_0: &Isbn13) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Isbn13) -> bool
This method tests for !=
.