pub struct InputFilter {
pub filter_chars: Vec<u8>,
pub allow_control: bool,
pub strip_high_bit: bool,
}Expand description
Input filter for processing user input.
Fields§
§filter_chars: Vec<u8>Characters to filter out.
allow_control: boolWhether to allow control characters.
strip_high_bit: boolWhether to strip high bit.
Implementations§
Source§impl InputFilter
impl InputFilter
Trait Implementations§
Source§impl Clone for InputFilter
impl Clone for InputFilter
Source§fn clone(&self) -> InputFilter
fn clone(&self) -> InputFilter
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 moreSource§impl Debug for InputFilter
impl Debug for InputFilter
Source§impl Default for InputFilter
impl Default for InputFilter
Source§fn default() -> InputFilter
fn default() -> InputFilter
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for InputFilter
impl RefUnwindSafe for InputFilter
impl Send for InputFilter
impl Sync for InputFilter
impl Unpin for InputFilter
impl UnwindSafe for InputFilter
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