Struct ezomyte::Experience [] [src]

pub struct Experience { /* fields omitted */ }

Experience gained by a gem.

Methods

impl Experience
[src]

[src]

Create an Experience object with given current & total values.

[src]

Create an Experience object which represents a 0/total state.

[src]

Create an Experience object which represents a filled experience bar with given total.

Such state correspond to a skill gem that is deliberately kept at a lower level.

impl Experience
[src]

[src]

Experience for current level earned so far. This is always lower than total.

[src]

Total experience before the next level.

[src]

Whether the experience "bar" is completely empty.

[src]

Whether the experience "bar" is fully filled.

[src]

Experience as a 0..=1 fraction.

[src]

Experience as a percentage value.

Trait Implementations

impl Clone for Experience
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for Experience
[src]

impl Add<u64> for Experience
[src]

The resulting type after applying the + operator.

[src]

Performs the + operation.

impl AddAssign<u64> for Experience
[src]

[src]

Performs the += operation.

impl Display for Experience
[src]

[src]

Formats the value using the given formatter. Read more

impl Debug for Experience
[src]

[src]

Formats the value using the given formatter. Read more

impl<'de> Deserialize<'de> for Experience
[src]

[src]

Deserialize this value from the given Serde deserializer. Read more

Auto Trait Implementations

impl Send for Experience

impl Sync for Experience