pub enum KeyGeometryError {
ZeroId,
InvalidRect,
InvalidDuplicate,
}Expand description
几何不合格的原因,整份拒绝。
Variants§
ZeroId
id 为 0:那是「清除几何」,不是一份几何。
InvalidRect
某个数不是有限数,宽高不为正,或归一后的键心离原点超过 [COORDINATE_LIMIT] 个键。
InvalidDuplicate
重复键不是一个小写字母。
Trait Implementations§
Source§impl Clone for KeyGeometryError
impl Clone for KeyGeometryError
impl Copy for KeyGeometryError
Source§impl Debug for KeyGeometryError
impl Debug for KeyGeometryError
Source§impl Display for KeyGeometryError
impl Display for KeyGeometryError
impl Eq for KeyGeometryError
Source§impl Error for KeyGeometryError
impl Error for KeyGeometryError
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 PartialEq for KeyGeometryError
impl PartialEq for KeyGeometryError
impl StructuralPartialEq for KeyGeometryError
Auto Trait Implementations§
impl Freeze for KeyGeometryError
impl RefUnwindSafe for KeyGeometryError
impl Send for KeyGeometryError
impl Sync for KeyGeometryError
impl Unpin for KeyGeometryError
impl UnsafeUnpin for KeyGeometryError
impl UnwindSafe for KeyGeometryError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.