Implement Default for Box<[T]>
This commit is contained in:
parent
679eb9191d
commit
73b86e4778
1 changed files with 4 additions and 0 deletions
|
|
@ -48,6 +48,10 @@ impl<T: Default> Default for Box<T> {
|
|||
fn default() -> Box<T> { box Default::default() }
|
||||
}
|
||||
|
||||
impl<T> Default for Box<[T]> {
|
||||
fn default() -> Box<[T]> { box [] }
|
||||
}
|
||||
|
||||
#[unstable]
|
||||
impl<T: Clone> Clone for Box<T> {
|
||||
/// Returns a copy of the owned box.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue