Lines Matching defs:repr
81 }) if literal.repr.starts_with('-') => {
89 literal.repr.remove(0);
898 repr: String,
919 pub(crate) fn _new(repr: String) -> Self {
921 repr,
926 pub(crate) unsafe fn from_str_unchecked(repr: &str) -> Self {
927 Literal::_new(repr.to_owned())
980 let mut repr = String::with_capacity(t.len() + 2);
981 repr.push('"');
985 repr.push_str(
998 repr.push(ch);
1000 repr.extend(ch.escape_debug());
1003 repr.push('"');
1004 Literal::_new(repr)
1008 let mut repr = String::new();
1009 repr.push('\'');
1012 repr.push(t);
1014 repr.extend(t.escape_debug());
1016 repr.push('\'');
1017 Literal::_new(repr)
1099 fn from_str(repr: &str) -> Result<Self, Self::Err> {
1100 let mut cursor = get_cursor(repr);
1115 literal.repr.insert(0, '-');
1132 Display::fmt(&self.repr, f)
1139 debug.field("lit", &format_args!("{}", self.repr));