pub struct Percent(pub u32);

Tuple Fields

0: u32

Implementations

Trait Implementations

The resulting type after applying the + operator.

Performs the + operation. Read more

The resulting type after applying the + operator.

Performs the + operation. Read more

Performs the += operation. Read more

Converts this type into a mutable reference of the (usually inferred) input type.

Converts this type into a shared reference of the (usually inferred) input type.

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

The resulting type after dereferencing.

Dereferences the value.

Mutably dereferences the value.

Deserialize this value from the given Serde deserializer. Read more

The resulting type after applying the / operator.

Performs the / operation. Read more

The resulting type after applying the / operator.

Performs the / operation. Read more

The resulting type after applying the / operator.

Performs the / operation. Read more

The resulting type after applying the / operator.

Performs the / operation. Read more

The resulting type after applying the / operator.

Performs the / operation. Read more

The resulting type after applying the / operator.

Performs the / operation. Read more

Performs the /= operation. Read more

Performs the /= operation. Read more

Converts to this type from the input type.

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

The resulting type after applying the * operator.

Performs the * operation. Read more

The resulting type after applying the * operator.

Performs the * operation. Read more

The resulting type after applying the * operator.

Performs the * operation. Read more

The resulting type after applying the * operator.

Performs the * operation. Read more

The resulting type after applying the * operator.

Performs the * operation. Read more

The resulting type after applying the * operator.

Performs the * operation. Read more

Performs the *= operation. Read more

Performs the *= operation. Read more

Output type for the methods of this trait.

Calculates floor(val * num / denom), i.e. the largest integer less than or equal to the result of the division. Read more

Calculates round(val * num / denom), i.e. the closest integer to the result of the division. If both surrounding integers are the same distance (x.5), the one with the bigger absolute value is returned (round away from 0.0). Read more

Calculates ceil(val * num / denom), i.e. the the smallest integer greater than or equal to the result of the division. Read more

The resulting inner type after applying the addition.

Computes the checked addition. Read more

The resulting inner type after applying the division.

Computes the checked division. Read more

The resulting inner type after applying the multiplication.

Computes the checked multiplication. Read more

The resulting inner type after applying the remainder.

Computes the checked remainder. Read more

The resulting inner type after applying the substraction.

Computes the checked substraction. Read more

The resulting inner type after applying the addition.

Returns a tuple of the addition along with a boolean indicating whether an arithmetic overflow would occur. If an overflow would have occurred then self is returned. Read more

The resulting inner type after applying the multiplication.

Returns a tuple of the multiplication along with a boolean indicating whether an arithmetic overflow would occur. If an overflow would have occurred then self is returned. Read more

The resulting inner type after applying the substraction.

Returns a tuple of the substraction along with a boolean indicating whether an arithmetic overflow would occur. If an overflow would have occurred then self is returned. Read more

The resulting inner type after applying the addition.

Computes the addition saturating at the numeric bounds instead of overflowing. Read more

The resulting inner type after applying the multiplication.

Computes the multiplication saturating at the numeric bounds instead of overflowing. Read more

The resulting inner type after applying the substraction.

Computes the substraction saturating at the numeric bounds instead of overflowing. Read more

The resulting inner type after applying the addition.

Computes the addition wrapping at the numeric bounds instead of overflowing. Read more

The resulting inner type after applying the multiplication.

Computes the multiplication wrapping at the numeric bounds instead of overflowing. Read more

The resulting inner type after applying the substraction.

Computes the substraction wrapping at the numeric bounds instead of overflowing. Read more

This method returns an Ordering between self and other. Read more

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

Restrict a value to a certain interval. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

The resulting type after applying the % operator.

Performs the % operation. Read more

The resulting type after applying the % operator.

Performs the % operation. Read more

The resulting type after applying the % operator.

Performs the % operation. Read more

The resulting type after applying the % operator.

Performs the % operation. Read more

The resulting type after applying the % operator.

Performs the % operation. Read more

The resulting type after applying the % operator.

Performs the % operation. Read more

Performs the %= operation. Read more

Performs the %= operation. Read more

Serialize this value into the given Serde serializer. Read more

The resulting type after applying the - operator.

Performs the - operation. Read more

The resulting type after applying the - operator.

Performs the - operation. Read more

Performs the -= operation. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The resulting inner type after applying the addition.

Computes the addition. Read more

The resulting inner type after applying the addition.

Computes the addition. Read more

The resulting inner type after applying the addition.

Computes the addition. Read more

Performs the addition assignment. Read more

Performs the addition assignment. Read more

Performs the addition assignment. Read more

The resulting inner type after applying the addition.

Computes the checked addition. Read more

The resulting inner type after applying the addition.

Computes the checked addition. Read more

The resulting inner type after applying the division.

Computes the checked division. Read more

The resulting inner type after applying the division.

Computes the checked division. Read more

The resulting inner type after applying the multiplication.

Computes the checked multiplication. Read more

The resulting inner type after applying the multiplication.

Computes the checked multiplication. Read more

The resulting inner type after applying the remainder.

Computes the checked remainder. Read more

The resulting inner type after applying the remainder.

Computes the checked remainder. Read more

The resulting inner type after applying the substraction.

Computes the checked substraction. Read more

The resulting inner type after applying the substraction.

Computes the checked substraction. Read more

The resulting inner type after applying the division.

Computes the division. Read more

The resulting inner type after applying the division.

Computes the division. Read more

The resulting inner type after applying the division.

Computes the division. Read more

Performs the division assignment. Read more

Performs the division assignment. Read more

Performs the division assignment. Read more

Tests whether self is equal to other. Read more

Tests whether self is not equal to other. Read more

Tests whether self is equal to other. Read more

Tests whether self is not equal to other. Read more

Tests whether self is equal to other. Read more

Tests whether self is not equal to other. Read more

Tests whether self is equal to other. Read more

Tests whether self is not equal to other. Read more

Compares and returns the minimum of two values. Read more

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

Compares and returns the maximum of two values. Read more

The resulting inner type after applying the multiplication.

Computes the multiplication. Read more

The resulting inner type after applying the multiplication.

Computes the multiplication. Read more

The resulting inner type after applying the multiplication.

Computes the multiplication. Read more

Performs the multiplication assignment. Read more

Performs the multiplication assignment. Read more

Performs the multiplication assignment. Read more

Returns an ordering between self and rhs values if one exists. Read more

Tests whether self is less than rhs. Read more

Tests whether self is less or equal to rhs. Read more

Tests whether self is greater than rhs. Read more

Tests whether self is greater or equal to rhs. Read more

Returns an ordering between self and rhs values if one exists. Read more

Tests whether self is less than rhs. Read more

Tests whether self is less or equal to rhs. Read more

Tests whether self is greater than rhs. Read more

Tests whether self is greater or equal to rhs. Read more

Returns an ordering between self and rhs values if one exists. Read more

Tests whether self is less than rhs. Read more

Tests whether self is less or equal to rhs. Read more

Tests whether self is greater than rhs. Read more

Tests whether self is greater or equal to rhs. Read more

Returns an ordering between self and rhs values if one exists. Read more

Tests whether self is less than rhs. Read more

Tests whether self is less or equal to rhs. Read more

Tests whether self is greater than rhs. Read more

Tests whether self is greater or equal to rhs. Read more

The resulting inner type after applying the addition.

Returns a tuple of the addition along with a boolean indicating whether an arithmetic overflow would occur. If an overflow would have occurred then self is returned. Read more

The resulting inner type after applying the addition.

Returns a tuple of the addition along with a boolean indicating whether an arithmetic overflow would occur. If an overflow would have occurred then self is returned. Read more

The resulting inner type after applying the multiplication.

Returns a tuple of the multiplication along with a boolean indicating whether an arithmetic overflow would occur. If an overflow would have occurred then self is returned. Read more

The resulting inner type after applying the multiplication.

Returns a tuple of the multiplication along with a boolean indicating whether an arithmetic overflow would occur. If an overflow would have occurred then self is returned. Read more

The resulting inner type after applying the substraction.

Returns a tuple of the substraction along with a boolean indicating whether an arithmetic overflow would occur. If an overflow would have occurred then self is returned. Read more

The resulting inner type after applying the substraction.

Returns a tuple of the substraction along with a boolean indicating whether an arithmetic overflow would occur. If an overflow would have occurred then self is returned. Read more

The resulting inner type after applying the remainder.

Computes the remainder. Read more

The resulting inner type after applying the remainder.

Computes the remainder. Read more

The resulting inner type after applying the remainder.

Computes the remainder. Read more

Performs the remainder assignment. Read more

Performs the remainder assignment. Read more

Performs the remainder assignment. Read more

The resulting inner type after applying the addition.

Computes the addition saturating at the numeric bounds instead of overflowing. Read more

The resulting inner type after applying the addition.

Computes the addition saturating at the numeric bounds instead of overflowing. Read more

The resulting inner type after applying the multiplication.

Computes the multiplication saturating at the numeric bounds instead of overflowing. Read more

The resulting inner type after applying the multiplication.

Computes the multiplication saturating at the numeric bounds instead of overflowing. Read more

The resulting inner type after applying the substraction.

Computes the substraction saturating at the numeric bounds instead of overflowing. Read more

The resulting inner type after applying the substraction.

Computes the substraction saturating at the numeric bounds instead of overflowing. Read more

The resulting inner type after applying the substraction.

Computes the substraction. Read more

The resulting inner type after applying the substraction.

Computes the substraction. Read more

The resulting inner type after applying the substraction.

Computes the substraction. Read more

Performs the substraction assignment. Read more

Performs the substraction assignment. Read more

Performs the substraction assignment. Read more

The resulting inner type after applying the addition.

Computes the addition wrapping at the numeric bounds instead of overflowing. Read more

The resulting inner type after applying the addition.

Computes the addition wrapping at the numeric bounds instead of overflowing. Read more

The resulting inner type after applying the multiplication.

Computes the multiplication wrapping at the numeric bounds instead of overflowing. Read more

The resulting inner type after applying the multiplication.

Computes the multiplication wrapping at the numeric bounds instead of overflowing. Read more

The resulting inner type after applying the substraction.

Computes the substraction wrapping at the numeric bounds instead of overflowing. Read more

The resulting inner type after applying the substraction.

Computes the substraction wrapping at the numeric bounds instead of overflowing. Read more

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.