pub enum DatabaseVersion {
KDB(u16),
KDB2(u16),
KDB3(u16),
KDB4(u16),
}Expand description
Supported KDB database versions, with the associated minor version.
Variants§
Implementations§
Source§impl DatabaseVersion
impl DatabaseVersion
pub fn parse(data: &[u8]) -> Result<DatabaseVersion, DatabaseVersionParseError>
Trait Implementations§
Source§impl Clone for DatabaseVersion
impl Clone for DatabaseVersion
Source§fn clone(&self) -> DatabaseVersion
fn clone(&self) -> DatabaseVersion
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DatabaseVersion
Source§impl Debug for DatabaseVersion
impl Debug for DatabaseVersion
Source§impl Display for DatabaseVersion
impl Display for DatabaseVersion
impl Eq for DatabaseVersion
Source§impl Hash for DatabaseVersion
impl Hash for DatabaseVersion
Source§impl Ord for DatabaseVersion
impl Ord for DatabaseVersion
Source§fn cmp(&self, other: &DatabaseVersion) -> Ordering
fn cmp(&self, other: &DatabaseVersion) -> Ordering
1.21.0 (const: unstable) · 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 DatabaseVersion
impl PartialEq for DatabaseVersion
Source§impl PartialOrd for DatabaseVersion
impl PartialOrd for DatabaseVersion
Source§impl Serialize for DatabaseVersion
impl Serialize for DatabaseVersion
impl StructuralPartialEq for DatabaseVersion
Auto Trait Implementations§
impl Freeze for DatabaseVersion
impl RefUnwindSafe for DatabaseVersion
impl Send for DatabaseVersion
impl Sync for DatabaseVersion
impl Unpin for DatabaseVersion
impl UnsafeUnpin for DatabaseVersion
impl UnwindSafe for DatabaseVersion
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> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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.