Remove Times trait
`Times::times` was always a second-class loop because it did not support the `break` and `continue` operations. Its playful appeal was then lost after `do` was disabled for closures. It's time to let this one go.
This commit is contained in:
@@ -139,18 +139,6 @@ pub trait Signed: Num
|
||||
|
||||
pub trait Unsigned: Num {}
|
||||
|
||||
/// Times trait
|
||||
///
|
||||
/// ```rust
|
||||
/// let ten = 10u;
|
||||
/// let mut accum = 0;
|
||||
/// ten.times(|| { accum += 1; })
|
||||
/// ```
|
||||
///
|
||||
pub trait Times {
|
||||
fn times(&self, it: ||);
|
||||
}
|
||||
|
||||
pub trait Integer: Num
|
||||
+ Orderable
|
||||
+ Div<Self,Self>
|
||||
|
||||
Reference in New Issue
Block a user