[][src]Struct sudachiclone::utf8_input_text::UTF8InputText

pub struct UTF8InputText { /* fields omitted */ }

Methods

impl UTF8InputText[src]

pub fn new(
    original_text: String,
    modified_text: String,
    bytes: Vec<u8>,
    offsets: Vec<usize>,
    byte_indexes: Vec<usize>,
    char_categories: Vec<HashSet<CategoryType>>,
    char_category_continuities: Vec<usize>,
    can_bow_list: Vec<bool>
) -> UTF8InputText
[src]

pub fn get_original_text(&self) -> &String[src]

pub fn get_text(&self) -> &String[src]

pub fn get_byte_text(&self) -> &Vec<u8>[src]

pub fn get_original_index(&self, index: usize) -> usize[src]

pub fn can_bow(&self, idx: usize) -> bool[src]

pub fn code_point_count(&self, range: Range<usize>) -> usize[src]

Trait Implementations

impl InputText for UTF8InputText[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,