Skip to content

Commit f3f0220

Browse files
hkBstUrgau
authored andcommitted
example literals for Mode
1 parent 9c63561 commit f3f0220

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/lib.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -545,17 +545,25 @@ impl Unescape for CStr {
545545
/// Enum of the different kinds of literal
546546
#[derive(Debug, Clone, Copy, PartialEq)]
547547
pub enum Mode {
548+
/// `'a'`
548549
Char,
549550

551+
/// `b'a'`
550552
Byte,
551553

554+
/// `"hello"`
552555
Str,
556+
/// `r"hello"`
553557
RawStr,
554558

559+
/// `b"hello"`
555560
ByteStr,
561+
/// `br"hello"`
556562
RawByteStr,
557563

564+
/// `c"hello"`
558565
CStr,
566+
/// `cr"hello"`
559567
RawCStr,
560568
}
561569

0 commit comments

Comments
 (0)