Struct sample::types::i20::I20 [] [src]

pub struct I20(_);

Methods

impl I20
[src]

[src]

Construct a new sample if the given value is within range.

Returns None if val is out of range.

[src]

Constructs a new sample without checking for overflowing.

This should only be used if the user can guarantee the sample will be within range and they require the extra performance.

If this function is used, the sample crate can't guarantee that the returned sample or any interacting samples will remain within their MIN and MAX bounds.

[src]

Return the internal value used to represent the sample type.

Trait Implementations

impl Copy for I20
[src]

impl Clone for I20
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for I20
[src]

[src]

Formats the value using the given formatter.

impl PartialEq for I20
[src]

[src]

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

[src]

This method tests for !=.

impl Eq for I20
[src]

impl PartialOrd for I20
[src]

[src]

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

[src]

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

[src]

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

[src]

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

[src]

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

impl Ord for I20
[src]

[src]

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

1.22.0
[src]

Compares and returns the maximum of two values. Read more

1.22.0
[src]

Compares and returns the minimum of two values. Read more

impl Default for I20
[src]

[src]

Returns the "default value" for a type. Read more

impl From<i32> for I20
[src]

[src]

Performs the conversion.

impl Add<I20> for I20
[src]

The resulting type after applying the + operator.

[src]

Performs the + operation.

impl Sub<I20> for I20
[src]

The resulting type after applying the - operator.

[src]

Performs the - operation.

impl Mul<I20> for I20
[src]

The resulting type after applying the * operator.

[src]

Performs the * operation.

impl Div<I20> for I20
[src]

The resulting type after applying the / operator.

[src]

Performs the / operation.

impl Not for I20
[src]

The resulting type after applying the ! operator.

[src]

Performs the unary ! operation.

impl Rem<I20> for I20
[src]

The resulting type after applying the % operator.

[src]

Performs the % operation.

impl Shl<I20> for I20
[src]

The resulting type after applying the << operator.

[src]

Performs the << operation.

impl Shr<I20> for I20
[src]

The resulting type after applying the >> operator.

[src]

Performs the >> operation.

impl BitAnd<I20> for I20
[src]

The resulting type after applying the & operator.

[src]

Performs the & operation.

impl BitOr<I20> for I20
[src]

The resulting type after applying the | operator.

[src]

Performs the | operation.

impl BitXor<I20> for I20
[src]

The resulting type after applying the ^ operator.

[src]

Performs the ^ operation.

impl From<i8> for I20
[src]

[src]

Performs the conversion.

impl From<I11> for I20
[src]

[src]

Performs the conversion.

impl From<i16> for I20
[src]

[src]

Performs the conversion.

impl From<u8> for I20
[src]

[src]

Performs the conversion.

impl From<U11> for I20
[src]

[src]

Performs the conversion.

impl From<u16> for I20
[src]

[src]

Performs the conversion.