#[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
impl Copy for ColumnType
Source§impl Debug for ColumnType
impl Debug for ColumnType
impl Eq for ColumnType
Source§impl PartialEq for ColumnType
impl PartialEq 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