MCPcopy Create free account
hub / github.com/davidblewett/rure-python / Literal

Class Literal

regex/regex-syntax/src/ast/mod.rs:614–621  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

612/// e.g., `\x61`.
613#[derive(Clone, Debug, Eq, PartialEq)]
614pub struct Literal {
615 /// The span of this literal.
616 pub span: Span,
617 /// The kind of this literal.
618 pub kind: LiteralKind,
619 /// The Unicode scalar value corresponding to this literal.
620 pub c: char,
621}
622
623impl Literal {
624 /// If this literal was written as a `\x` hex escape, then this returns

Callers 10

into_astMethod · 0.70
into_class_set_itemMethod · 0.70
parse_primitiveMethod · 0.70
parse_escapeMethod · 0.70
parse_set_class_itemMethod · 0.70
parse_set_class_openMethod · 0.70
punct_litFunction · 0.70
lit_withFunction · 0.70
litFunction · 0.70
choose_match_typeMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected