Struct docker_compose::v2::MemorySize [] [src]

pub struct MemorySize(_);

The size of a block of memory. This can be serialized as a Docker-compatible size string using specifiers like k, m and g.

Methods

impl MemorySize
[src]

Create a MemorySize from a size in bytes.

Create from a size in kilobytes.

Create from a size in megabytes.

Create from a size in gigabytes.

Convert to a size in bytes.

Trait Implementations

impl Copy for MemorySize
[src]

impl Clone for MemorySize
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Eq for MemorySize
[src]

impl PartialEq for MemorySize
[src]

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

This method tests for !=.

impl Debug for MemorySize
[src]

Formats the value using the given formatter.

impl Display for MemorySize
[src]

Formats the value using the given formatter.

impl FromStr for MemorySize
[src]

The associated error which can be returned from parsing.

Parses a string s to return a value of this type. Read more