pub enum ELUVMethodVariant {
Variant1,
Variant2,
Variant3,
}Variants§
Trait Implementations§
Source§impl Debug for ELUVMethodVariant
impl Debug for ELUVMethodVariant
Source§impl PartialEq for ELUVMethodVariant
impl PartialEq for ELUVMethodVariant
Source§impl TryFrom<u8> for ELUVMethodVariant
impl TryFrom<u8> for ELUVMethodVariant
Source§fn try_from(value: u8) -> Result<Self, Self::Error>
fn try_from(value: u8) -> Result<Self, Self::Error>
Coverts a value to ELUV method variant enum.
§Examples
§Convert number to variant
use ptero::method::complex::eluv::ELUVMethodVariant;
use std::convert::TryFrom;
assert_eq!(ELUVMethodVariant::try_from(1).unwrap(), ELUVMethodVariant::Variant1);
assert_eq!(ELUVMethodVariant::try_from(2).unwrap(), ELUVMethodVariant::Variant2);
assert_eq!(ELUVMethodVariant::try_from(3).unwrap(), ELUVMethodVariant::Variant3);§Returns error if invalid number
ⓘ
use ptero::method::complex::eluv::ELUVMethodVariant;
use ptero::method::variant::VariantError;
use std::convert::TryFrom;
ELUVMethodVariant::try_from(4).unwrap();Source§type Error = VariantError
type Error = VariantError
The type returned in the event of a conversion error.
impl StructuralPartialEq for ELUVMethodVariant
Auto Trait Implementations§
impl Freeze for ELUVMethodVariant
impl RefUnwindSafe for ELUVMethodVariant
impl Send for ELUVMethodVariant
impl Sync for ELUVMethodVariant
impl Unpin for ELUVMethodVariant
impl UnwindSafe for ELUVMethodVariant
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more