muds 0.1.5

Minimalistic Data Structures and Entity-Component-System Library
Documentation
1
2
3
4
5
6
7
8
9
10
11
//! Marker traits.

use core::fmt::Debug;
use core::hash::Hash;

use num::{NumCast, Unsigned};

/// Marker trait for an unsigned number type castable to/from unsigned primitives
pub trait UnsignedNum: Copy + Debug + Hash + NumCast + Ord + Unsigned {}

impl<U> UnsignedNum for U where U: Copy + Debug + Hash + NumCast + Ord + Unsigned {}