Struct onig::EncodedBytes
source · [−]pub struct EncodedBytes<'a> { /* private fields */ }
Expand description
Byte Buffer
Represents a buffer of bytes, with an encoding.
Implementations
sourceimpl<'a> EncodedBytes<'a>
impl<'a> EncodedBytes<'a>
sourcepub fn from_parts(bytes: &'a [u8], enc: OnigEncoding) -> EncodedBytes<'a>
pub fn from_parts(bytes: &'a [u8], enc: OnigEncoding) -> EncodedBytes<'a>
Trait Implementations
sourceimpl<'a> EncodedChars for EncodedBytes<'a>
impl<'a> EncodedChars for EncodedBytes<'a>
sourcefn encoding(&self) -> OnigEncoding
fn encoding(&self) -> OnigEncoding
The encoding of the contents of the buffer
Auto Trait Implementations
impl<'a> RefUnwindSafe for EncodedBytes<'a>
impl<'a> !Send for EncodedBytes<'a>
impl<'a> !Sync for EncodedBytes<'a>
impl<'a> Unpin for EncodedBytes<'a>
impl<'a> UnwindSafe for EncodedBytes<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more