Struct nonzero_ext::literals::NonZeroLiteral[][src]

pub struct NonZeroLiteral<T: IntegerLiteral>(pub T);
Expand description

A representation of a non-zero literal. Used by the nonzero! macro.

This struct has no use outside of this macro (even though it can be constructed by anyone). It needs to exist to support the use of the nonzero! macro in const expressions.

Tuple Fields

0: T

Implementations

Converts the wrapped value to its non-zero equivalent.

Safety

The wrapped value must be non-zero.

Converts the wrapped value to its non-zero equivalent.

Safety

The wrapped value must be non-zero.

Converts the wrapped value to its non-zero equivalent.

Safety

The wrapped value must be non-zero.

Converts the wrapped value to its non-zero equivalent.

Safety

The wrapped value must be non-zero.

Converts the wrapped value to its non-zero equivalent.

Safety

The wrapped value must be non-zero.

Converts the wrapped value to its non-zero equivalent.

Safety

The wrapped value must be non-zero.

Converts the wrapped value to its non-zero equivalent.

Safety

The wrapped value must be non-zero.

Converts the wrapped value to its non-zero equivalent.

Safety

The wrapped value must be non-zero.

Converts the wrapped value to its non-zero equivalent.

Safety

The wrapped value must be non-zero.

Converts the wrapped value to its non-zero equivalent.

Safety

The wrapped value must be non-zero.

Converts the wrapped value to its non-zero equivalent.

Safety

The wrapped value must be non-zero.

Converts the wrapped value to its non-zero equivalent.

Safety

The wrapped value must be non-zero.

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.