parent
8493506cf8
commit
1f1b6e68df
@ -1,3 +1,18 @@
|
||||
use super::*;
|
||||
|
||||
pub use object::ObjectExt;
|
||||
pub use object::{
|
||||
ObjectExt,
|
||||
ObjectNewExt,
|
||||
};
|
||||
|
||||
pub trait Tuple2Ext<T,U>: Sized
|
||||
{
|
||||
fn swap(self) -> (U, T);
|
||||
}
|
||||
|
||||
impl<T, U> Tuple2Ext<T,U> for (T, U)
|
||||
{
|
||||
#[inline(always)] fn swap(self) -> (U, T) {
|
||||
(self.1, self.0)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in new issue