mirror of
https://github.com/nushell/reedline.git
synced 2024-08-17 11:50:42 +03:00
enable easier history session id conversion (#485)
This commit is contained in:
parent
3fa87ef1e2
commit
9a6fdd78dc
@ -32,6 +32,12 @@ impl Display for HistorySessionId {
|
||||
}
|
||||
}
|
||||
|
||||
impl From<HistorySessionId> for i64 {
|
||||
fn from(id: HistorySessionId) -> Self {
|
||||
id.0
|
||||
}
|
||||
}
|
||||
|
||||
/// This trait represents additional arbitrary context to be added to a history (optional, see [`HistoryItem`])
|
||||
pub trait HistoryItemExtraInfo: Serialize + DeserializeOwned + Default + Send {}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user