Enum reproto_core::utils::Encoding
[−]
[src]
pub enum Encoding { Bytes, Utf8, Utf16, }
Encoding for which to check the range.
Variants
Bytes
Emit the raw byte offset for the column.
Utf8
Emit the UTF-8 offset for the column.
Utf16
Emit the UTF-16 offset for the column.
Methods
impl Encoding
[src]
pub fn column(&self, buffer: &[u8], col: usize) -> Result<usize>
[src]
Calculate the column, which depends on the encoding.
Trait Implementations
impl Debug for Encoding
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Clone for Encoding
[src]
fn clone(&self) -> Encoding
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more