#[non_exhaustive]pub enum ColumnType {
Int,
Bool,
String,
Data,
Float,
Double,
Timestamp,
Link,
LinkList,
BackLink,
Unknown(u8),
}Expand description
The declared type of a Realm column.
Decoded from the 4-bit type codes stored in the table spec array.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Int
64-bit signed integer.
Bool
Boolean (1-bit).
String
UTF-8 string.
Data
Arbitrary binary data.
Float
32-bit IEEE 754 float.
Double
64-bit IEEE 754 double.
Timestamp
Unix timestamp (seconds).
Link
Reference to a row in another table.
LinkList
List of references to rows in another table.
BackLink
Inverse link (back-link).
Unknown(u8)
A type code not recognised by this parser version.
Implementations§
Trait Implementations§
Source§impl Clone for ColumnType
impl Clone for ColumnType
Source§fn clone(&self) -> ColumnType
fn clone(&self) -> ColumnType
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 moreSource§impl Debug for ColumnType
impl Debug for ColumnType
Source§impl PartialEq for ColumnType
impl PartialEq for ColumnType
Source§fn eq(&self, other: &ColumnType) -> bool
fn eq(&self, other: &ColumnType) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for ColumnType
impl Eq for ColumnType
impl StructuralPartialEq for ColumnType
Auto Trait Implementations§
impl Freeze for ColumnType
impl RefUnwindSafe for ColumnType
impl Send for ColumnType
impl Sync for ColumnType
impl Unpin for ColumnType
impl UnsafeUnpin for ColumnType
impl UnwindSafe for ColumnType
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