pub enum InputMethodAction {
Unspecified,
None,
Go,
Search,
Send,
Next,
Done,
Previous,
Newline,
// some variants omitted
}
Expand description
Determines what happens if the “action” key is pressed on the keyboard, typically would either be the “Enter” key on a physical keyboard, or an action button on a virtual keyboard, which is usually placed where Enter would be, but with a custom label.
Variants§
Unspecified
The method action was not specified at all.
None
No special action is requested.
Go
The action is “Go”, e.g. execute a command.
Search
The action is to invoke a search.
Send
The action is to invoke “send”, e.g. if this is an email or a SMS message.
Next
The action is to move to the next field in the focus sequence.
Done
The action is to end the text editing.
Previous
The action is to move to the previous field in the focus sequence.
Newline
Pressing the action key inserts a new line into the text field. In contrast to other values, which all stop editing and invoke a specific action.
Implementations§
Source§impl InputMethodAction
impl InputMethodAction
pub fn from_primitive(prim: u32) -> Option<Self>
pub fn from_primitive_allow_unknown(prim: u32) -> Self
pub fn unknown() -> Self
pub const fn into_primitive(self) -> u32
pub fn is_unknown(&self) -> bool
Trait Implementations§
Source§impl Clone for InputMethodAction
impl Clone for InputMethodAction
Source§fn clone(&self) -> InputMethodAction
fn clone(&self) -> InputMethodAction
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for InputMethodAction
impl Debug for InputMethodAction
Source§impl<D: ResourceDialect> Decode<InputMethodAction, D> for InputMethodAction
impl<D: ResourceDialect> Decode<InputMethodAction, D> for InputMethodAction
Source§impl<D: ResourceDialect> Encode<InputMethodAction, D> for InputMethodAction
impl<D: ResourceDialect> Encode<InputMethodAction, D> for InputMethodAction
Source§impl Hash for InputMethodAction
impl Hash for InputMethodAction
Source§impl Ord for InputMethodAction
impl Ord for InputMethodAction
Source§fn cmp(&self, other: &InputMethodAction) -> Ordering
fn cmp(&self, other: &InputMethodAction) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for InputMethodAction
impl PartialEq for InputMethodAction
Source§impl PartialOrd for InputMethodAction
impl PartialOrd for InputMethodAction
Source§impl TypeMarker for InputMethodAction
impl TypeMarker for InputMethodAction
Source§type Owned = InputMethodAction
type Owned = InputMethodAction
Source§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
Source§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
inline_align
.Source§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
Self::Owned
matches the FIDL wire
format and encoding requires no validation. When true, we can optimize
encoding arrays and vectors of Self::Owned
to a single memcpy. Read moreSource§fn decode_is_copy() -> bool
fn decode_is_copy() -> bool
Self::Owned
matches the FIDL wire
format and decoding requires no validation. When true, we can optimize
decoding arrays and vectors of Self::Owned
to a single memcpy.Source§impl ValueTypeMarker for InputMethodAction
impl ValueTypeMarker for InputMethodAction
Source§type Borrowed<'a> = InputMethodAction
type Borrowed<'a> = InputMethodAction
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read moreimpl Copy for InputMethodAction
impl Eq for InputMethodAction
impl StructuralPartialEq for InputMethodAction
Auto Trait Implementations§
impl Freeze for InputMethodAction
impl RefUnwindSafe for InputMethodAction
impl Send for InputMethodAction
impl Sync for InputMethodAction
impl Unpin for InputMethodAction
impl UnwindSafe for InputMethodAction
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
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)
clone_to_uninit
)