pub struct Codepoint<'a> {
pub bytes: &'a [u8],
pub rewind: usize,
pub meaning: Meaning,
}
Represents a complete or partial UTF-8 codepoint.
Fields
bytes | The bytes that make up the partial or full codepoint.
For a Suffix this depends on idx . We don't scan forward
for additional continuation bytes after the reverse scan
failed to locate a multibyte sequence start.
|
rewind | Start of the codepoint in the buffer, expressed as an offset
back from idx .
|
meaning | Meaning of the partial or full codepoint.
|
Trait Implementations
Derived Implementations
Keyboard Shortcuts
- ?
- Show this help dialog
- S
- Focus the search field
- ⇤
- Move up in search results
- ⇥
- Move down in search results
- ⏎
- Go to active search result
Search Tricks
Prefix searches with a type followed by a colon (e.g.
fn:
) to restrict the search to a given type.
Accepted types are: fn
, mod
,
struct
, enum
,
trait
, typedef
(or
tdef
).
Search functions by type signature (e.g.
vec -> usize
)