Add Debug implementations for libcollection structs

This commit is contained in:
Guillaume Gomez 2017-01-11 23:12:49 +01:00
parent a52da95ced
commit 61fbdbba41
10 changed files with 496 additions and 0 deletions

View file

@ -1979,6 +1979,13 @@ pub struct Drain<'a> {
iter: Chars<'a>,
}
#[stable(feature = "collection_debug", since = "1.15.0")]
impl<'a> fmt::Debug for Drain<'a> {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
f.pad("String::Drain { .. }")
}
}
#[stable(feature = "drain", since = "1.6.0")]
unsafe impl<'a> Sync for Drain<'a> {}
#[stable(feature = "drain", since = "1.6.0")]