pub enum SpanKind {
Whitespace,
Comment,
LiteralString,
HexString,
DictOpen,
DictClose,
ArrayOpen,
ArrayClose,
BraceOpen,
BraceClose,
Name,
Regular,
}Expand description
The lexical class of a byte span.
Variants§
Whitespace
A maximal run of PDF whitespace bytes.
Comment
A % comment, including the % and excluding the terminating EOL.
LiteralString
A ( … ) literal string (possibly with escaped/nested parens).
HexString
A < … > hexadecimal string.
DictOpen
A << dictionary opener.
DictClose
A >> dictionary closer.
ArrayOpen
A [ array opener.
ArrayClose
A ] array closer.
BraceOpen
A { brace opener.
BraceClose
A } brace closer.
Name
A / name, including the leading slash.
Regular
A maximal run of regular bytes (keywords, numbers, references, …).
Trait Implementations§
impl Copy for SpanKind
impl Eq for SpanKind
impl StructuralPartialEq for SpanKind
Auto Trait Implementations§
impl Freeze for SpanKind
impl RefUnwindSafe for SpanKind
impl Send for SpanKind
impl Sync for SpanKind
impl Unpin for SpanKind
impl UnsafeUnpin for SpanKind
impl UnwindSafe for SpanKind
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more