Enum lib_tcstring::TcModel [−][src]
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]
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>,