Struct onig::EncodedBytes
[−]
[src]
pub struct EncodedBytes<'a> { /* fields omitted */ }
Byte Buffer
Represents a buffer of bytes, with an encoding.
Methods
impl<'a> EncodedBytes<'a>
[src]
fn from_parts(bytes: &'a [u8], enc: OnigEncoding) -> EncodedBytes<'a>
[src]
New Buffer from Parts
Arguments
bytes
- The contents of the bufferenc
- The encoding this buffer is in
Returns
A new buffer instance
fn ascii(bytes: &'a [u8]) -> EncodedBytes<'a>
[src]
Trait Implementations
impl<'a> EncodedChars for EncodedBytes<'a>
[src]
fn start_ptr(&self) -> *const OnigUChar
[src]
Pointer to the start of the pattern Read more
fn limit_ptr(&self) -> *const OnigUChar
[src]
Pointer to the limit of the pattern buffer Read more
fn encoding(&self) -> OnigEncoding
[src]
The encoding of the contents of the buffer
fn len(&self) -> usize
[src]
The length of this buffer