#[non_exhaustive]pub enum ImeSurroundingTextError {
TextTooLong,
CursorBadPosition,
AnchorBadPosition,
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
TextTooLong
Text exceeds 4000 bytes
CursorBadPosition
Cursor not on a code point boundary, or past the end of text.
AnchorBadPosition
Anchor not on a code point boundary, or past the end of text.
Trait Implementations§
Source§impl Clone for ImeSurroundingTextError
impl Clone for ImeSurroundingTextError
Source§impl Debug for ImeSurroundingTextError
impl Debug for ImeSurroundingTextError
Source§impl Display for ImeSurroundingTextError
impl Display for ImeSurroundingTextError
impl Eq for ImeSurroundingTextError
Source§impl Error for ImeSurroundingTextError
impl Error for ImeSurroundingTextError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl Hash for ImeSurroundingTextError
impl Hash for ImeSurroundingTextError
Source§impl PartialEq for ImeSurroundingTextError
impl PartialEq for ImeSurroundingTextError
impl StructuralPartialEq for ImeSurroundingTextError
Auto Trait Implementations§
impl Freeze for ImeSurroundingTextError
impl RefUnwindSafe for ImeSurroundingTextError
impl Send for ImeSurroundingTextError
impl Sync for ImeSurroundingTextError
impl Unpin for ImeSurroundingTextError
impl UnsafeUnpin for ImeSurroundingTextError
impl UnwindSafe for ImeSurroundingTextError
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