[][src]Trait onig::EncodedChars

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 { ... } }

Encoded String Buffer

Represents a buffer of characters with encoding information attached.

Required methods

fn start_ptr(&self) -> *const OnigUChar

Pointer to the start of the pattern

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

fn limit_ptr(&self) -> *const OnigUChar

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.

fn len(&self) -> usize

The length of this buffer

Loading content...

Provided methods

fn encoding(&self) -> OnigEncoding

The encoding of the contents of the buffer

fn is_empty(&self) -> bool

Is the buffer empty?

Loading content...

Implementors

impl<'a> EncodedChars for EncodedBytes<'a>
[src]

impl<T> EncodedChars for T where
    T: AsRef<str>, 
[src]

Encoded Charters from a str Reference

Loading content...