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