[−][src]Enum lib_tcstring::TCModel
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]
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,