#[repr(u8)]pub enum DeckErrorType {
Lflist = 1,
OcgOnly = 2,
TcgOnly = 3,
UnknownCard = 4,
CardCount = 5,
MainCount = 6,
ExtraCount = 7,
SideCount = 8,
NotAvailable = 9,
}Expand description
The kind of deck error.
Variants§
Lflist = 1
Violates the limit list.
OcgOnly = 2
Contains card only available in OCG.
TcgOnly = 3
Contains card only available in TCG.
UnknownCard = 4
Contains unknown card.
CardCount = 5
Too many copies of a card.
MainCount = 6
The main deck size is wrong.
ExtraCount = 7
The extra deck size is wrong.
SideCount = 8
The side deck size is wrong.
NotAvailable = 9
A card is not available.
Trait Implementations§
Source§impl CheckDiscriminantInRange<BitCount<CardCount>> for DeckErrorType
impl CheckDiscriminantInRange<BitCount<CardCount>> for DeckErrorType
Source§impl CheckDiscriminantInRange<BitCount<ExtraCount>> for DeckErrorType
impl CheckDiscriminantInRange<BitCount<ExtraCount>> for DeckErrorType
Source§impl CheckDiscriminantInRange<BitCount<Lflist>> for DeckErrorType
impl CheckDiscriminantInRange<BitCount<Lflist>> for DeckErrorType
Source§impl CheckDiscriminantInRange<BitCount<MainCount>> for DeckErrorType
impl CheckDiscriminantInRange<BitCount<MainCount>> for DeckErrorType
Source§impl CheckDiscriminantInRange<BitCount<NotAvailable>> for DeckErrorType
impl CheckDiscriminantInRange<BitCount<NotAvailable>> for DeckErrorType
Source§impl CheckDiscriminantInRange<BitCount<OcgOnly>> for DeckErrorType
impl CheckDiscriminantInRange<BitCount<OcgOnly>> for DeckErrorType
Source§impl CheckDiscriminantInRange<BitCount<SideCount>> for DeckErrorType
impl CheckDiscriminantInRange<BitCount<SideCount>> for DeckErrorType
Source§impl CheckDiscriminantInRange<BitCount<TcgOnly>> for DeckErrorType
impl CheckDiscriminantInRange<BitCount<TcgOnly>> for DeckErrorType
Source§impl CheckDiscriminantInRange<BitCount<UnknownCard>> for DeckErrorType
impl CheckDiscriminantInRange<BitCount<UnknownCard>> for DeckErrorType
Source§impl Clone for DeckErrorType
impl Clone for DeckErrorType
Source§fn clone(&self) -> DeckErrorType
fn clone(&self) -> DeckErrorType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DeckErrorType
Source§impl Debug for DeckErrorType
impl Debug for DeckErrorType
impl Eq for DeckErrorType
Source§impl From<DeckErrorType> for u8
impl From<DeckErrorType> for u8
Source§fn from(enum_value: DeckErrorType) -> Self
fn from(enum_value: DeckErrorType) -> Self
Converts to this type from the input type.
Source§impl PartialEq for DeckErrorType
impl PartialEq for DeckErrorType
Source§impl Specifier for DeckErrorType
impl Specifier for DeckErrorType
Source§type Bytes = <BitCount<4> as SpecifierBytes>::Bytes
type Bytes = <BitCount<4> as SpecifierBytes>::Bytes
The storage type. This is typically the smallest integer primitive that
can store all possible values of the
InOut type.Source§type InOut = DeckErrorType
type InOut = DeckErrorType
The interface type. This type is used by getters and setters. For
integers, this is the same as the
Bytes type; for other
types with more logical representations, like an enum or struct, this is
the enum or struct.Source§fn into_bytes(
input: <Self as Specifier>::InOut,
) -> Result<<Self as Specifier>::Bytes, OutOfBounds>
fn into_bytes( input: <Self as Specifier>::InOut, ) -> Result<<Self as Specifier>::Bytes, OutOfBounds>
Converts an interface type into its storage type. Read more
impl StructuralPartialEq for DeckErrorType
Source§impl TryFrom<u8> for DeckErrorType
impl TryFrom<u8> for DeckErrorType
Source§type Error = TryFromPrimitiveError<DeckErrorType>
type Error = TryFromPrimitiveError<DeckErrorType>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for DeckErrorType
impl TryFromPrimitive for DeckErrorType
const NAME: &'static str = "DeckErrorType"
type Primitive = u8
type Error = TryFromPrimitiveError<DeckErrorType>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
Auto Trait Implementations§
impl Freeze for DeckErrorType
impl RefUnwindSafe for DeckErrorType
impl Send for DeckErrorType
impl Sync for DeckErrorType
impl Unpin for DeckErrorType
impl UnsafeUnpin for DeckErrorType
impl UnwindSafe for DeckErrorType
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