protoflow_blocks::types

Type Alias InvalidByteSize

source
pub type InvalidByteSize = Error;

Aliased Type§

enum InvalidByteSize {
    Empty,
    Unexpected(usize, char),
    FractionalByte,
    BadSuffix,
    BadWhole(ParseIntError),
    BadFractional(ParseIntError),
}

Variants§

§

Empty

The input was empty.

§

Unexpected(usize, char)

Found unexpected character .1 at byte index .0.

§

FractionalByte

A [ByteUnit::B] contained a fractional component.

§

BadSuffix

The parsed byte unit suffix is unknown.

§

BadWhole(ParseIntError)

The whole part of the the number ({whole}.{frac}) was invalid.

§

BadFractional(ParseIntError)

The fractional part of the the number ({whole}.{frac}) was invalid.