[][src]Struct marc::Tag

pub struct Tag(pub [u8; 3]);

Tag of a field

Implementations

impl Tag[src]

pub fn from_slice(bytes: &[u8]) -> Self[src]

Creates a tag from the given slice.

Panic

Will panic if bytes.len() != 3.

Trait Implementations

impl AsRef<[u8]> for Tag[src]

impl Clone for Tag[src]

impl Copy for Tag[src]

impl Debug for Tag[src]

impl Display for Tag[src]

impl Eq for Tag[src]

impl From<&'_ [u8; 3]> for Tag[src]

impl From<[u8; 3]> for Tag[src]

impl Ord for Tag[src]

impl PartialEq<&'_ [u8; 3]> for Tag[src]

impl PartialEq<&'_ [u8]> for Tag[src]

impl PartialEq<&'_ str> for Tag[src]

impl PartialEq<[u8; 3]> for Tag[src]

impl PartialEq<[u8]> for Tag[src]

impl PartialEq<Tag> for Tag[src]

impl PartialEq<str> for Tag[src]

impl PartialOrd<Tag> for Tag[src]

impl StructuralEq for Tag[src]

impl StructuralPartialEq for Tag[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.