fn rust_codepoint(&self, cp: u32) -> Option<String> {
        if self.opts.char_literals {
            char::from_u32(cp).map(|c| format!("{:?}", c))
        } else {
            Some(cp.to_string())
        }
    }
/// Return valid Rust source code that represents the given codepoint.
///
/// The source code returned is either a u32 literal or a char literal,
/// depending on the configuration. If the configuration demands a char
/// literal and the given codepoint is a surrogate, then return None.
Return valid Rust source code that represents the given codepoint.
The source code returned is either a u32 literal or a char literal,
depending on the configuration. If the configuration demands a char
literal and the given codepoint is a surrogate, then return None.
Return valid Rust source code that represents the given codepoint . The source code returned is either a u32 literal or a char literal depending on the configuration . If the configuration demands a char literal and the given codepoint is a surrogate then return None .
fn rust_codepoint(&self, cp: u32) -> Option<String> {
        if self.opts.char_literals {
            char::from_u32(cp).map(|c| format!("{:?}", c))
        } else {
            Some(cp.to_string())
        }
    }
fn rust_codepoint ( & self , cp : u32 ) -> Option < String > { if self . opts . char_literals { char :: from_u32 ( cp ) . map ( | c | format ! ( " " c ) ) } else { Some ( cp . to_string ( ) ) } }
Return valid Rust source code that represents the given codepoint.
Return valid Rust source code that represents the given codepoint .
&self
cp
u32
&self
cp
u32