[−][src]Struct sudachiclone::utf8_input_text::UTF8InputText
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]
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
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]
fn get_substring(&self, start: usize, end: usize) -> Result<Cow<str>, ()>
[src]
fn get_char_category_continuous_length(&self, index: usize) -> usize
[src]
fn get_code_points_offset_length(
&self,
index: usize,
code_point_offset: usize
) -> usize
[src]
&self,
index: usize,
code_point_offset: usize
) -> usize
fn get_char_category_types(
&self,
start: usize,
end: Option<usize>
) -> HashSet<CategoryType>
[src]
&self,
start: usize,
end: Option<usize>
) -> HashSet<CategoryType>
fn get_word_candidate_length(&self, index: usize) -> usize
[src]
Auto Trait Implementations
impl RefUnwindSafe for UTF8InputText
impl Send for UTF8InputText
impl Sync for UTF8InputText
impl Unpin for UTF8InputText
impl UnwindSafe for UTF8InputText
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,