Trait onig::EncodedChars 
source · pub trait EncodedChars {
    // Required methods
    fn start_ptr(&self) -> *const OnigUChar;
    fn limit_ptr(&self) -> *const OnigUChar;
    fn len(&self) -> usize;
    // Provided methods
    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§
sourcefn start_ptr(&self) -> *const OnigUChar
 
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.
Provided Methods§
sourcefn encoding(&self) -> OnigEncoding
 
fn encoding(&self) -> OnigEncoding
The encoding of the contents of the buffer
Implementors§
impl<'a> EncodedChars for EncodedBytes<'a>
impl<T> EncodedChars for T
Encoded Charters from a str Reference