Struct relay_event_schema::processor::CharacterSet
source · pub struct CharacterSet {
pub char_is_valid: fn(_: char) -> bool,
pub ranges: &'static [RangeInclusive<char>],
pub is_negative: bool,
}
Expand description
A set of characters allowed or denied for a (string) field.
Note that this field is generated in the derive, it can’t be constructed easily in tests.
Fields§
§char_is_valid: fn(_: char) -> bool
Generated in derive for performance. Can be left out when set is created manually.
ranges: &'static [RangeInclusive<char>]
A set of ranges that are allowed/denied within the character set
is_negative: bool
Whether the character set is inverted
Trait Implementations§
source§impl Clone for CharacterSet
impl Clone for CharacterSet
source§fn clone(&self) -> CharacterSet
fn clone(&self) -> CharacterSet
Returns a copy 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 CharacterSet
impl Debug for CharacterSet
impl Copy for CharacterSet
Auto Trait Implementations§
impl Freeze for CharacterSet
impl RefUnwindSafe for CharacterSet
impl Send for CharacterSet
impl Sync for CharacterSet
impl Unpin for CharacterSet
impl UnwindSafe for CharacterSet
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)