Expand description
Represents a complete or partial UTF-8 codepoint.
Fields
bytes: &'a [u8]
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: usize
Start of the codepoint in the buffer, expressed as an offset
back from idx
.
meaning: Meaning
Meaning of the partial or full codepoint.
Trait Implementations
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl<'a> RefUnwindSafe for Codepoint<'a>
impl<'a> UnwindSafe for Codepoint<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more