traits: inline Bounded tuple methods

This commit is contained in:
Josh Stone 2016-08-10 22:22:15 -07:00
parent fa451ac00c
commit 7a9c39fa87
1 changed files with 2 additions and 0 deletions

View File

@ -55,9 +55,11 @@ macro_rules! for_each_tuple {
macro_rules! bounded_tuple {
( $($name:ident)* ) => (
impl<$($name: Bounded,)*> Bounded for ($($name,)*) {
#[inline]
fn min_value() -> Self {
($($name::min_value(),)*)
}
#[inline]
fn max_value() -> Self {
($($name::max_value(),)*)
}