From e5b727d29a349fcbe648806268706219720635eb Mon Sep 17 00:00:00 2001 From: Daniel Sommermann Date: Wed, 1 Jan 2020 16:17:24 -0800 Subject: [PATCH] Add documentation of compile-time width function alternative. --- src/int.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/int.rs b/src/int.rs index 26d5a9a3..cda06163 100644 --- a/src/int.rs +++ b/src/int.rs @@ -22,7 +22,7 @@ use {Num, NumCast}; /// /// All `PrimInt` types are expected to be fixed-width binary integers. The width can be queried /// via `T::zero().count_zeros()`. The trait currently lacks a way to query the width at -/// compile-time. +/// compile-time, but `core::mem::size_of::()` can be used in the meantime. /// /// While a default implementation for all builtin primitive integers is provided, the trait is in /// no way restricted to these. Other integer types that fulfil the requirements are free to