rstd 0.1.0
Loading...
Searching...
No Matches
rstd::num::nonzero::NonZero< T > Struct Template Referenceexport
module rstd.core

Detailed Description

template<typename T>
struct rstd::num::nonzero::NonZero< T >

A value that is known not to equal zero.

This enables some memory layout optimization. For example, Option<NonZero<u32>> is the same size as u32:


The documentation for this struct was generated from the following file: