pub struct NameRules {
pub max_len: usize,
pub allowed: fn(char) -> bool,
}Expand description
Program-name limits.
Fields§
§max_len: usizeThe longest name, in characters.
allowed: fn(char) -> boolWhether a character can be part of a name.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for NameRules
impl RefUnwindSafe for NameRules
impl Send for NameRules
impl Sync for NameRules
impl Unpin for NameRules
impl UnsafeUnpin for NameRules
impl UnwindSafe for NameRules
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