зеркало из
https://github.com/glebtv/tui-textarea.git
synced 2026-09-08 08:25:51 +03:00
Add Eq derive for Input
Этот коммит содержится в:
@@ -14,7 +14,7 @@ use serde::{Deserialize, Serialize};
|
|||||||
///
|
///
|
||||||
/// This type is marked as `#[non_exhaustive]` since more keys may be supported in the future.
|
/// This type is marked as `#[non_exhaustive]` since more keys may be supported in the future.
|
||||||
#[non_exhaustive]
|
#[non_exhaustive]
|
||||||
#[derive(Clone, Copy, Debug, PartialEq, Hash)]
|
#[derive(Clone, Copy, Debug, PartialEq, Hash, Eq)]
|
||||||
#[cfg_attr(feature = "arbitrary", derive(Arbitrary))]
|
#[cfg_attr(feature = "arbitrary", derive(Arbitrary))]
|
||||||
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
|
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
|
||||||
pub enum Key {
|
pub enum Key {
|
||||||
@@ -103,7 +103,7 @@ impl Default for Key {
|
|||||||
/// shift: false,
|
/// shift: false,
|
||||||
/// });
|
/// });
|
||||||
/// ```
|
/// ```
|
||||||
#[derive(Debug, Clone, Default, PartialEq, Hash)]
|
#[derive(Debug, Clone, Default, PartialEq, Hash, Eq)]
|
||||||
#[cfg_attr(feature = "arbitrary", derive(Arbitrary))]
|
#[cfg_attr(feature = "arbitrary", derive(Arbitrary))]
|
||||||
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
|
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
|
||||||
pub struct Input {
|
pub struct Input {
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user