We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
last
EscapeUnicode
1 parent 009e243 commit ad7f68dCopy full SHA for ad7f68d
src/libcore/char.rs
@@ -496,6 +496,18 @@ impl Iterator for EscapeUnicode {
496
fn count(self) -> usize {
497
self.len()
498
}
499
+
500
+ fn last(self) -> Option<char> {
501
+ match self.state {
502
+ EscapeUnicodeState::Done => None,
503
504
+ EscapeUnicodeState::RightBrace |
505
+ EscapeUnicodeState::Value |
506
+ EscapeUnicodeState::LeftBrace |
507
+ EscapeUnicodeState::Type |
508
+ EscapeUnicodeState::Backslash => Some('}'),
509
+ }
510
511
512
513
#[stable(feature = "rust1", since = "1.7.0")]
0 commit comments