Skip to content

Commit

Permalink
impl num_traits::sign::Unsigned (#531)
Browse files Browse the repository at this point in the history
Implements the `Unsigned` marker trait for the uint types created in `primitive-types`.
  • Loading branch information
sunny-g committed Mar 3, 2021
1 parent f3b859a commit 6a4ce4b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions primitive-types/impls/num-traits/src/lib.rs
Expand Up @@ -20,6 +20,8 @@ pub use uint;
#[macro_export]
macro_rules! impl_uint_num_traits {
($name: ident, $len: expr) => {
impl $crate::num_traits::sign::Unsigned for $name {}

impl $crate::num_traits::identities::Zero for $name {
#[inline]
fn zero() -> Self {
Expand Down

0 comments on commit 6a4ce4b

Please sign in to comment.