DOC: Add docs for default values
This commit is contained in:
@@ -31,6 +31,7 @@ pub struct ArrayString<A: Array<Item=u8>> {
|
||||
}
|
||||
|
||||
impl<A: Array<Item=u8>> Default for ArrayString<A> {
|
||||
/// Return an empty `ArrayString`
|
||||
fn default() -> ArrayString<A> {
|
||||
ArrayString::new()
|
||||
}
|
||||
|
||||
@@ -942,6 +942,7 @@ impl<A: Array> fmt::Debug for ArrayVec<A> where A::Item: fmt::Debug {
|
||||
}
|
||||
|
||||
impl<A: Array> Default for ArrayVec<A> {
|
||||
/// Return an empty array
|
||||
fn default() -> ArrayVec<A> {
|
||||
ArrayVec::new()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user