Enum
KeyboardKind
pub enum KeyboardKind {
Alphanumeric = 0,
Password = 1,
Numbers = 2,
Decimal = 3,
Email = 4,
}Variants
Alphanumeric = 0
Password = 1
Numbers = 2
Decimal = 3
Email = 4
Trait Implementations
impl Archive for KeyboardKind
impl Archive for KeyboardKind
type Archived = ArchivedKeyboardKind
type Archived = ArchivedKeyboardKind
The archived representation of this type. Read more
type Resolver = KeyboardKindResolver
type Resolver = KeyboardKindResolver
The resolver for this type. It must contain all the additional
information from serializing needed to make the archived type from
the normal type.
fn resolve(
&self,
resolver: <Self as Archive>::Resolver,
out: Place<<Self as Archive>::Archived>,
)
fn resolve( &self, resolver: <Self as Archive>::Resolver, out: Place<<Self as Archive>::Archived>, )
Creates the archived version of this value at the given position and
writes it to the given output. Read more
const COPY_OPTIMIZATION: CopyOptimization<Self> = _
const COPY_OPTIMIZATION: CopyOptimization<Self> = _
An optimization flag that allows the bytes of this type to be copied
directly to a writer instead of calling
serialize. Read moreimpl AsScalar<1> for KeyboardKind
impl AsScalar<1> for KeyboardKind
fn as_scalar(&self) -> [u32; 1]
impl Clone for KeyboardKind
impl Clone for KeyboardKind
fn clone(&self) -> KeyboardKind
fn clone(&self) -> KeyboardKind
Returns a duplicate of the value. Read more
1.0.0fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Debug for KeyboardKind
impl Debug for KeyboardKind
impl Default for KeyboardKind
impl Default for KeyboardKind
fn default() -> KeyboardKind
fn default() -> KeyboardKind
Returns the “default value” for a type. Read more
impl<__D: Fallible + ?Sized> Deserialize<KeyboardKind, __D> for Archived<KeyboardKind>
impl<__D: Fallible + ?Sized> Deserialize<KeyboardKind, __D> for Archived<KeyboardKind>
fn deserialize(
&self,
deserializer: &mut __D,
) -> Result<KeyboardKind, <__D as Fallible>::Error>
fn deserialize( &self, deserializer: &mut __D, ) -> Result<KeyboardKind, <__D as Fallible>::Error>
Deserializes using the given deserializer
impl From<&ArchivedKeyboardKind> for KeyboardKind
impl From<&ArchivedKeyboardKind> for KeyboardKind
fn from(archived: &ArchivedKeyboardKind) -> Self
fn from(archived: &ArchivedKeyboardKind) -> Self
Converts to this type from the input type.
impl FromPrimitive for KeyboardKind
impl FromPrimitive for KeyboardKind
fn from_i64(n: i64) -> Option<Self>
fn from_i64(n: i64) -> Option<Self>
Converts an
i64 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.fn from_u64(n: u64) -> Option<Self>
fn from_u64(n: u64) -> Option<Self>
Converts an
u64 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.fn from_isize(n: isize) -> Option<Self>
fn from_isize(n: isize) -> Option<Self>
Converts an
isize to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.fn from_i8(n: i8) -> Option<Self>
fn from_i8(n: i8) -> Option<Self>
Converts an
i8 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.fn from_i16(n: i16) -> Option<Self>
fn from_i16(n: i16) -> Option<Self>
Converts an
i16 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.fn from_i32(n: i32) -> Option<Self>
fn from_i32(n: i32) -> Option<Self>
Converts an
i32 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.fn from_i128(n: i128) -> Option<Self>
fn from_i128(n: i128) -> Option<Self>
Converts an
i128 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned. Read morefn from_usize(n: usize) -> Option<Self>
fn from_usize(n: usize) -> Option<Self>
Converts a
usize to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.fn from_u8(n: u8) -> Option<Self>
fn from_u8(n: u8) -> Option<Self>
Converts an
u8 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.fn from_u16(n: u16) -> Option<Self>
fn from_u16(n: u16) -> Option<Self>
Converts an
u16 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.fn from_u32(n: u32) -> Option<Self>
fn from_u32(n: u32) -> Option<Self>
Converts an
u32 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.fn from_u128(n: u128) -> Option<Self>
fn from_u128(n: u128) -> Option<Self>
Converts an
u128 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned. Read morefn from_f32(n: f32) -> Option<Self>
fn from_f32(n: f32) -> Option<Self>
Converts a
f32 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.impl FromScalar<1> for KeyboardKind
impl FromScalar<1> for KeyboardKind
fn from_scalar([value]: [u32; 1]) -> Self
impl PartialEq for KeyboardKind
impl PartialEq for KeyboardKind
fn eq(&self, other: &KeyboardKind) -> bool
fn eq(&self, other: &KeyboardKind) -> bool
Tests for
self and other values to be equal, and is used by ==.1.0.0fn ne(&self, other: &Rhs) -> bool
fn ne(&self, other: &Rhs) -> bool
Tests for
!=. The default implementation is almost always sufficient,
and should not be overridden without very good reason.impl<__S: Fallible + ?Sized> Serialize<__S> for KeyboardKind
impl<__S: Fallible + ?Sized> Serialize<__S> for KeyboardKind
fn serialize(
&self,
serializer: &mut __S,
) -> Result<<Self as Archive>::Resolver, <__S as Fallible>::Error>
fn serialize( &self, serializer: &mut __S, ) -> Result<<Self as Archive>::Resolver, <__S as Fallible>::Error>
Writes the dependencies for the object and returns a resolver that can
create the archived type.