pub trait EncodedChars {
    fn start_ptr(&self) -> *const OnigUChar;
    fn limit_ptr(&self) -> *const OnigUChar;
    fn len(&self) -> usize;

    fn encoding(&self) -> OnigEncoding { ... }
    fn is_empty(&self) -> bool { ... }
}
Expand description

Encoded String Buffer

Represents a buffer of characters with encoding information attached.

Required Methods

Pointer to the start of the pattern

This should point to the first character in the buffer, encoded as an onig_sys character.

Pointer to the limit of the pattern buffer

This should point just past the final character in the buffer, encoded as an onig_sys character.

The length of this buffer

Provided Methods

The encoding of the contents of the buffer

Is the buffer empty?

Implementors

Encoded Charters from a str Reference