pub struct Normalizer { /* private fields */ }Expand description
複数の正規化処理をまとめて適用するビルダー。
Implementations§
Source§impl Normalizer
impl Normalizer
pub fn new() -> Self
pub fn with_options(options: NormalizeOptions) -> Self
pub fn unicode(self, form: UnicodeNormalizationForm) -> Self
pub fn unicode_normalization( self, form: Option<UnicodeNormalizationForm>, ) -> Self
pub fn half_width_ascii(self, enabled: bool) -> Self
pub fn full_width_ascii(self, enabled: bool) -> Self
pub fn hiragana(self, enabled: bool) -> Self
pub fn katakana(self, enabled: bool) -> Self
pub fn half_width_katakana(self, enabled: bool) -> Self
pub fn full_width_katakana(self, enabled: bool) -> Self
pub fn whitespace(self, mode: WhitespaceMode) -> Self
pub fn combine_dakuten(self, enabled: bool) -> Self
pub fn decompose_dakuten(self, enabled: bool) -> Self
pub fn punctuation(self, enabled: bool) -> Self
pub fn brackets(self, enabled: bool) -> Self
pub fn symbols(self, enabled: bool) -> Self
pub fn old_kanji(self, enabled: bool) -> Self
pub fn remove_variation_selectors(self, enabled: bool) -> Self
pub fn expand_iteration_marks(self, enabled: bool) -> Self
pub fn preserve_ascii_tokens(self, enabled: bool) -> Self
pub fn options(&self) -> &NormalizeOptions
pub fn normalize(&self, input: &str) -> String
Trait Implementations§
Source§impl Clone for Normalizer
impl Clone for Normalizer
Source§fn clone(&self) -> Normalizer
fn clone(&self) -> Normalizer
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Normalizer
impl Debug for Normalizer
Source§impl Default for Normalizer
impl Default for Normalizer
Source§fn default() -> Normalizer
fn default() -> Normalizer
Returns the “default value” for a type. Read more
Source§impl PartialEq for Normalizer
impl PartialEq for Normalizer
Source§fn eq(&self, other: &Normalizer) -> bool
fn eq(&self, other: &Normalizer) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for Normalizer
impl StructuralPartialEq for Normalizer
Auto Trait Implementations§
impl Freeze for Normalizer
impl RefUnwindSafe for Normalizer
impl Send for Normalizer
impl Sync for Normalizer
impl Unpin for Normalizer
impl UnsafeUnpin for Normalizer
impl UnwindSafe for Normalizer
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