added IterBytes for 4-tuples
This commit is contained in:
parent
58e7598c2e
commit
f68aa459ea
1 changed files with 10 additions and 0 deletions
|
@ -375,3 +375,13 @@ impl<A:IterBytes> ToBytes for A {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[cfg(test)]
|
||||||
|
mod test {
|
||||||
|
use super::*;
|
||||||
|
// just test to see if it compiles:
|
||||||
|
#[test] fn iterbytes_compiles () {
|
||||||
|
takes_iterbytes((3,4,5,false));
|
||||||
|
}
|
||||||
|
fn takes_iterbytes<T : IterBytes>(x : T) {}
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue