Struct sample::types::u20::U20 [] [src]

pub struct U20(_);

Methods

impl U20
[src]

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

Returns None if val is out of range.

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.

Return the internal value used to represent the sample type.

Trait Implementations

impl Copy for U20
[src]

impl Clone for U20
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for U20
[src]

Formats the value using the given formatter.

impl PartialEq for U20
[src]

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

This method tests for !=.

impl Eq for U20
[src]

impl PartialOrd for U20
[src]

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

impl Ord for U20
[src]

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

impl Default for U20
[src]

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

impl From<i32> for U20
[src]

Performs the conversion.

impl Add<U20> for U20
[src]

The resulting type after applying the + operator

The method for the + operator

impl Sub<U20> for U20
[src]

The resulting type after applying the - operator

The method for the - operator

impl Mul<U20> for U20
[src]

The resulting type after applying the * operator

The method for the * operator

impl Div<U20> for U20
[src]

The resulting type after applying the / operator

The method for the / operator

impl Not for U20
[src]

The resulting type after applying the ! operator

The method for the unary ! operator

impl Rem<U20> for U20
[src]

The resulting type after applying the % operator

The method for the % operator

impl Shl<U20> for U20
[src]

The resulting type after applying the << operator

The method for the << operator

impl Shr<U20> for U20
[src]

The resulting type after applying the >> operator

The method for the >> operator

impl BitAnd<U20> for U20
[src]

The resulting type after applying the & operator

The method for the & operator

impl BitOr<U20> for U20
[src]

The resulting type after applying the | operator

The method for the | operator

impl BitXor<U20> for U20
[src]

The resulting type after applying the ^ operator

The method for the ^ operator

impl From<u8> for U20
[src]

Performs the conversion.

impl From<u16> for U20
[src]

Performs the conversion.