Struct isbn::Isbn10 [] [src]

pub struct Isbn10 { /* fields omitted */ }

10-digit ISBN format.

Methods

impl Isbn10
[src]

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);

Returns true if this is a valid ISBN10 code.

Trait Implementations

impl Debug for Isbn10
[src]

Formats the value using the given formatter.

impl PartialEq for Isbn10
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Display for Isbn10
[src]

Formats the value using the given formatter. Read more

impl FromStr for Isbn10
[src]

The associated error which can be returned from parsing.

Parses a string s to return a value of this type. Read more