pub struct Isbn(/* private fields */);Expand description
An International Standard Book Number, canonically ISBN-13 digits
(9780262035613).
Accepts ISBN-10 and ISBN-13, with or without hyphens or spaces, with an
ISBN, ISBN-10 or ISBN-13 label; both checksums are validated, and
ISBN-10s are converted, so 0-262-03561-8 equals 978-0-262-03561-3.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Isbn
impl<'de> Deserialize<'de> for Isbn
Source§fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Isbn
Source§impl Ord for Isbn
impl Ord for Isbn
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for Isbn
impl PartialOrd for Isbn
impl StructuralPartialEq for Isbn
Auto Trait Implementations§
impl Forget for Isbn
impl Freeze for Isbn
impl RefUnwindSafe for Isbn
impl Send for Isbn
impl Sync for Isbn
impl Unpin for Isbn
impl UnsafeUnpin for Isbn
impl UnwindSafe for Isbn
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more