mirror of
https://github.com/nushell/reedline.git
synced 2024-09-11 15:55:50 +03:00
Add more derive impl for HistoryItemId (#662)
This commit is contained in:
parent
16ac4411f0
commit
01e32dae88
@ -5,7 +5,7 @@ use serde::{de::DeserializeOwned, Deserialize, Serialize};
|
||||
use std::{fmt::Display, time::Duration};
|
||||
|
||||
/// Unique ID for the [`HistoryItem`]. More recent items have higher ids than older ones.
|
||||
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
|
||||
#[derive(Debug, Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
|
||||
pub struct HistoryItemId(pub(crate) i64);
|
||||
impl HistoryItemId {
|
||||
pub(crate) const fn new(i: i64) -> HistoryItemId {
|
||||
|
Loading…
Reference in New Issue
Block a user