pub enum DatabaseTextEncoding {
Utf8,
Utf16Le,
Utf16Be,
}
Expand description
§Text encoding (4 Bytes)
The 4-byte big-endian integer at offset 56 determines the encoding used for all text strings stored in the database. A value of 1 means UTF-8. A value of 2 means UTF-16le. A value of 3 means UTF-16be. No other values are allowed. The sqlite3.h header file defines C-preprocessor macros SQLITE_UTF8 as 1, SQLITE_UTF16LE as 2, and SQLITE_UTF16BE as 3, to use in place of the numeric codes for the text encoding.
Variants§
Trait Implementations§
Source§impl Debug for DatabaseTextEncoding
impl Debug for DatabaseTextEncoding
Source§impl Default for DatabaseTextEncoding
impl Default for DatabaseTextEncoding
Source§fn default() -> DatabaseTextEncoding
fn default() -> DatabaseTextEncoding
Returns the “default value” for a type. Read more
Source§impl Display for DatabaseTextEncoding
impl Display for DatabaseTextEncoding
Source§impl From<&DatabaseTextEncoding> for u32
impl From<&DatabaseTextEncoding> for u32
Source§fn from(value: &DatabaseTextEncoding) -> Self
fn from(value: &DatabaseTextEncoding) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for DatabaseTextEncoding
impl RefUnwindSafe for DatabaseTextEncoding
impl Send for DatabaseTextEncoding
impl Sync for DatabaseTextEncoding
impl Unpin for DatabaseTextEncoding
impl UnwindSafe for DatabaseTextEncoding
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