[−][src]Struct streamson_extra_matchers::regex_converter::RegexConverter
Converts data using regex
Implementations
impl RegexConverter
[src]
pub fn new() -> Self
[src]
Creates a new regex converter
pub fn add_regex(self, regex: Regex, into: String, limit: usize) -> Self
[src]
Adds new regex conversion which will be applied
Arguments
regex
- regex which will be usedinto
- regex replacement
Trait Implementations
impl Debug for RegexConverter
[src]
impl Default for RegexConverter
[src]
pub fn default() -> RegexConverter
[src]
impl Handler for RegexConverter
[src]
pub fn handle(
&mut self,
_path: &Path,
_matcher_idx: usize,
data: Option<&[u8]>
) -> Result<Option<Vec<u8>>, Handler>
[src]
&mut self,
_path: &Path,
_matcher_idx: usize,
data: Option<&[u8]>
) -> Result<Option<Vec<u8>>, Handler>
pub fn use_path(&self) -> bool
[src]
pub fn buffering_required(&self) -> bool
[src]
pub fn handle_idx(
&mut self,
_path: &Path,
_matcher_idx: usize,
_idx: Output
) -> Result<(), Handler>
[src]
&mut self,
_path: &Path,
_matcher_idx: usize,
_idx: Output
) -> Result<(), Handler>
pub fn separator(&self) -> &str
[src]
Auto Trait Implementations
impl !RefUnwindSafe for RegexConverter
impl Send for RegexConverter
impl Sync for RegexConverter
impl Unpin for RegexConverter
impl UnwindSafe for RegexConverter
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,
pub 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.
pub 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>,