pub struct MappingCharacterFilter { /* private fields */ }Expand description
Replace characters with the specified character mappings, and correcting the resulting changes to the offsets. Matching is greedy (longest pattern matching at a given point wins). Replacement is allowed to be the empty string.
Implementations§
Source§impl MappingCharacterFilter
impl MappingCharacterFilter
pub fn new(config: MappingCharacterFilterConfig) -> LinderaResult<Self>
pub fn from_slice(data: &[u8]) -> LinderaResult<Self>
Trait Implementations§
Source§impl Clone for MappingCharacterFilter
impl Clone for MappingCharacterFilter
Source§fn clone(&self) -> MappingCharacterFilter
fn clone(&self) -> MappingCharacterFilter
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for MappingCharacterFilter
impl RefUnwindSafe for MappingCharacterFilter
impl Send for MappingCharacterFilter
impl Sync for MappingCharacterFilter
impl Unpin for MappingCharacterFilter
impl UnwindSafe for MappingCharacterFilter
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