pub struct CamelCaseValidator;Expand description
A validator for CamelCase strings.
Rules:
- The string must start with an uppercase letter.
- Only alphanumeric characters are allowed (no spaces, underscores, or special characters).
§Examples of valid CamelCase
ValidCamelCaseAnotherExample123
§Examples of invalid CamelCase
invalidCamelCase(starts with a lowercase letterInvalid-CamelCase!(contains special characters)Invalid_CamelCase(contains underscores)
§Example
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CamelCaseValidator
impl RefUnwindSafe for CamelCaseValidator
impl Send for CamelCaseValidator
impl Sync for CamelCaseValidator
impl Unpin for CamelCaseValidator
impl UnwindSafe for CamelCaseValidator
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