Struct reedline::HistoryItemId
source · pub struct HistoryItemId(pub i64);
Expand description
Unique ID for the HistoryItem
. More recent items have higher ids than older ones.
Tuple Fields§
§0: i64
Implementations§
source§impl HistoryItemId
impl HistoryItemId
sourcepub const fn new(i: i64) -> HistoryItemId
pub const fn new(i: i64) -> HistoryItemId
Create a new HistoryItemId
value
Trait Implementations§
source§impl Clone for HistoryItemId
impl Clone for HistoryItemId
source§fn clone(&self) -> HistoryItemId
fn clone(&self) -> HistoryItemId
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for HistoryItemId
impl Debug for HistoryItemId
source§impl<'de> Deserialize<'de> for HistoryItemId
impl<'de> Deserialize<'de> for HistoryItemId
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for HistoryItemId
impl Display for HistoryItemId
source§impl Hash for HistoryItemId
impl Hash for HistoryItemId
source§impl Ord for HistoryItemId
impl Ord for HistoryItemId
source§fn cmp(&self, other: &HistoryItemId) -> Ordering
fn cmp(&self, other: &HistoryItemId) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for HistoryItemId
impl PartialEq for HistoryItemId
source§fn eq(&self, other: &HistoryItemId) -> bool
fn eq(&self, other: &HistoryItemId) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for HistoryItemId
impl PartialOrd for HistoryItemId
source§fn partial_cmp(&self, other: &HistoryItemId) -> Option<Ordering>
fn partial_cmp(&self, other: &HistoryItemId) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for HistoryItemId
impl Serialize for HistoryItemId
impl Copy for HistoryItemId
impl Eq for HistoryItemId
impl StructuralPartialEq for HistoryItemId
Auto Trait Implementations§
impl RefUnwindSafe for HistoryItemId
impl Send for HistoryItemId
impl Sync for HistoryItemId
impl Unpin for HistoryItemId
impl UnwindSafe for HistoryItemId
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