[][src]Struct marc::Indicator

pub struct Indicator(pub [u8; 2]);

Variable data field indicator.

Implementations

impl Indicator[src]

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

Creates an indicator from the given slice.

Painc

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

Trait Implementations

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

impl Clone for Indicator[src]

impl Copy for Indicator[src]

impl Debug for Indicator[src]

impl Eq for Indicator[src]

impl From<&'_ [u8; 2]> for Indicator[src]

impl From<[u8; 2]> for Indicator[src]

impl Ord for Indicator[src]

impl PartialEq<&'_ [u8; 2]> for Indicator[src]

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

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

impl PartialEq<[u8; 2]> for Indicator[src]

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

impl PartialEq<Indicator> for Indicator[src]

impl PartialEq<str> for Indicator[src]

impl PartialOrd<Indicator> for Indicator[src]

impl StructuralEq for Indicator[src]

impl StructuralPartialEq for Indicator[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, 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.