Struct memory_units::Bytes [] [src]

pub struct Bytes(pub usize);

Memory size specified in bytes.

Trait Implementations

impl From<Words> for Bytes
[src]

[src]

Performs the conversion.

impl From<Pages> for Bytes
[src]

[src]

Performs the conversion.

impl From<Words> for Bytes
[src]

[src]

Performs the conversion.

impl From<Pages> for Bytes
[src]

[src]

Performs the conversion.

impl Debug for Bytes
[src]

[src]

Formats the value using the given formatter. Read more

impl Clone for Bytes
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for Bytes
[src]

impl PartialEq for Bytes
[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 Bytes
[src]

impl PartialOrd for Bytes
[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 Bytes
[src]

[src]

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

1.21.0
[src]

Compares and returns the maximum of two values. Read more

1.21.0
[src]

Compares and returns the minimum of two values. Read more

impl ByteSize for Bytes
[src]

BYTE_SIZE: Bytes = Bytes(1)

The size, in bytes, of a single unit of Self.

impl<T: Into<Bytes>> RoundUpTo<Bytes> for T
[src]

[src]

Returns minimum number of T to fit amount of space occupied by self.

impl<T: Into<Self>> Add<T> for Bytes
[src]

The resulting type after applying the + operator.

[src]

Performs the + operation.

impl<T: Into<Self>> Sub<T> for Bytes
[src]

The resulting type after applying the - operator.

[src]

Performs the - operation.

impl<T: Into<Self>> Mul<T> for Bytes
[src]

The resulting type after applying the * operator.

[src]

Performs the * operation.

impl<T: Into<Self>> Div<T> for Bytes
[src]

The resulting type after applying the / operator.

[src]

Performs the / operation.

Auto Trait Implementations

impl Send for Bytes

impl Sync for Bytes