pub struct EncodedBytes<'a> { /* private fields */ }
Expand description
Byte Buffer
Represents a buffer of bytes, with an encoding.
Implementations§
Source§impl<'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§
Source§impl<'a> EncodedChars for EncodedBytes<'a>
impl<'a> EncodedChars for EncodedBytes<'a>
Source§fn encoding(&self) -> OnigEncoding
fn encoding(&self) -> OnigEncoding
The encoding of the contents of the buffer
Auto Trait Implementations§
impl<'a> Freeze for EncodedBytes<'a>
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§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more