Enum parg::Type[][src]

pub enum Type {
Show variants ReadAsU8, ReadAsU16, ReadAsU32, ReadAsU64, ReadAsU128, ReadAsUsize, ReadAsI8, ReadAsI16, ReadAsI32, ReadAsI64, ReadAsI128, ReadAsIsize, ReadAsF32, ReadAsF64, ReadAsBool, ReadAsChar, ReadAsString,
}
Expand description

This enum indicates the expected type of the argument value.

Variants

ReadAsU8

Value is expected to be u8.

ReadAsU16

Value is expected to be u16.

ReadAsU32

Value is expected to be u32.

ReadAsU64

Value is expected to be u64.

ReadAsU128

Value is expected to be u128.

ReadAsUsize

Value is expected to be usize.

ReadAsI8

Value is expected to be i8.

ReadAsI16

Value is expected to be i16.

ReadAsI32

Value is expected to be i32.

ReadAsI64

Value is expected to be i64.

ReadAsI128

Value is expected to be i128.

ReadAsIsize

Value is expected to be isize.

ReadAsF32

Value is expected to be f32.

ReadAsF64

Value is expected to be f64.

ReadAsBool

Value is expected to be bool.

ReadAsChar

Value is expected to be char.

ReadAsString

Value is expected to be String.

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.