Add Debug implementations for libcollection structs
This commit is contained in:
parent
a52da95ced
commit
61fbdbba41
10 changed files with 496 additions and 0 deletions
|
|
@ -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")]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue