[−][src]Struct cr_tools::logic::types::CardEntry
Fields
name: String
The name of the card
have: usize
The amount of cards in posession
level: usize
The current level of the card
card_type: CardType
The rarity of the card
rarity: Rarity
The rarity of the card
computed: Option<CardData>
Computed values
Implementations
impl CardEntry
[src]
pub fn calc_remaining(&self, arena: Option<Arena>) -> Option<CardData>
[src]
pub fn compute_all(list: &mut Vec<Self>)
[src]
pub fn sort_remaining(a: &Self, b: &Self) -> Ordering
[src]
Custom order algorithm for sorting CardEntries by days
pub fn sum_all(list: &mut Vec<Self>) -> Result<()>
[src]
impl CardEntry
[src]
impl CardEntry
[src]
pub fn get_needed(&self) -> usize
[src]
Calculates the amount of required cards to upgrade to the next level (or 0 when on 13)
Trait Implementations
impl Clone for CardEntry
[src]
impl<'de> Deserialize<'de> for CardEntry
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl PartialEq<CardEntry> for CardEntry
[src]
impl Serialize for CardEntry
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralPartialEq for CardEntry
[src]
Auto Trait Implementations
impl RefUnwindSafe for CardEntry
[src]
impl Send for CardEntry
[src]
impl Sync for CardEntry
[src]
impl Unpin for CardEntry
[src]
impl UnwindSafe for CardEntry
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Any for T where
T: Any,
T: Any,
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> CloneAny for T where
T: Clone + Any,
T: Clone + Any,
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
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>,