[][src]Enum lib_tcstring::TCModel

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

This code runs with edition 2018
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.