pgs

Struct PGSv2

Source
pub struct PGSv2 {
    pub name: String,
    pub beaten_flags: Vec<bool>,
    pub leaders_beaten: u8,
    pub money: u32,
    pub wins: u32,
    pub losses: u32,
    pub fights: u32,
    pub catches: u32,
    pub items: Vec<u32>,
    pub pokedex: Vec<bool>,
    pub pokemon: Vec<Pokemon>,
}
Expand description

A structure for the PGS format.

Maximum values:

  • leaders_beaten: 25

Required lengths:

  • beaten_flags: 5
  • pokedex: 386
  • items: 6

Maximum lengths:

  • pokemon: 10,000

Fields§

§name: String§beaten_flags: Vec<bool>§leaders_beaten: u8§money: u32§wins: u32§losses: u32§fights: u32§catches: u32§items: Vec<u32>§pokedex: Vec<bool>§pokemon: Vec<Pokemon>

Trait Implementations§

Source§

impl Debug for PGSv2

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl Freeze for PGSv2

§

impl RefUnwindSafe for PGSv2

§

impl Send for PGSv2

§

impl Sync for PGSv2

§

impl Unpin for PGSv2

§

impl UnwindSafe for PGSv2

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.