Enum lib_tcstring::TcModel[][src]

pub enum TcModel {
    V1(Box<TcModelV1>),
    V2(Box<TcModelV2>),
}

TcModel serves as a convenience wrapper to parse a given TCString without checking the version on the calling side

use std::convert::TryFrom;
// will return a Result which contains the variant for the TCString version or an Error
// if the TCString could not be parsed or the TCString includes an unsupported version
let tc_model = lib_tcstring::TcModel::try_from("COvFyGBOvFyGBAbAAAENAPCAAOAAAAAAAAAAAEEUACCKAAA");

Variants

Contains a reference to the TcModelV1

Contains a reference to the TcModelV2

Trait Implementations

impl Clone for TcModel[src]

impl Debug for TcModel[src]

impl PartialEq<TcModel> for TcModel[src]

impl StructuralPartialEq for TcModel[src]

impl TryFrom<&'_ str> for TcModel[src]

type Error = TcsError

The type returned in the event of a conversion error.

Auto Trait Implementations

impl RefUnwindSafe for TcModel

impl Send for TcModel

impl Sync for TcModel

impl Unpin for TcModel

impl UnwindSafe for TcModel

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.