Enum ctru::applets::swkbd::ValidInput
source · #[repr(u8)]pub enum ValidInput {
Anything = 0,
NotEmpty = 1,
NotBlank = 3,
NotEmptyNotBlank = 2,
FixedLen = 4,
}
Expand description
Restrictions to enforce rules on the keyboard input.
Variants§
Anything = 0
All inputs are accepted.
NotEmpty = 1
Empty inputs are not accepted.
NotBlank = 3
Blank inputs (consisting only of whitespaces) are not accepted.
NotEmptyNotBlank = 2
Neither empty inputs nor blank inputs are accepted.
FixedLen = 4
Input must have a fixed length. Maximum length can be specified with SoftwareKeyboard::set_max_text_len()
;
Trait Implementations§
source§impl Clone for ValidInput
impl Clone for ValidInput
source§fn clone(&self) -> ValidInput
fn clone(&self) -> ValidInput
Returns a copy of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ValidInput
impl Debug for ValidInput
source§impl From<ValidInput> for i32
impl From<ValidInput> for i32
source§fn from(v: ValidInput) -> Self
fn from(v: ValidInput) -> Self
Converts to this type from the input type.
source§impl From<ValidInput> for u32
impl From<ValidInput> for u32
source§fn from(v: ValidInput) -> Self
fn from(v: ValidInput) -> Self
Converts to this type from the input type.
source§impl PartialEq for ValidInput
impl PartialEq for ValidInput
impl Copy for ValidInput
impl Eq for ValidInput
impl StructuralPartialEq for ValidInput
Auto Trait Implementations§
impl RefUnwindSafe for ValidInput
impl Send for ValidInput
impl Sync for ValidInput
impl Unpin for ValidInput
impl UnwindSafe for ValidInput
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more