pub struct SqliteSyntaxFlags(/* private fields */);Expand description
Snapshot of C-parser compatibility flags for the SQLite grammar.
This type mirrors the SyntaqliteCflags C struct (3 bytes, 22 meaningful
bits, compact indices 0–21) and is used to configure the C parser at
runtime. It covers only the grammar-level parser flags defined in
include/syntaqlite/cflags.h.
For the full set of SQLite compile-time flags — including non-parser flags
like SQLITE_ENABLE_MATH_FUNCTIONS — use syntaqlite::util::SqliteFlags.
Implementations§
Source§impl SqliteSyntaxFlags
impl SqliteSyntaxFlags
Sourcepub fn has(&self, flag: SqliteSyntaxFlag) -> bool
pub fn has(&self, flag: SqliteSyntaxFlag) -> bool
Returns true if parser flag flag is enabled.
Sourcepub fn with(self, flag: SqliteSyntaxFlag) -> Self
pub fn with(self, flag: SqliteSyntaxFlag) -> Self
Return a copy of these flags with flag enabled.
Trait Implementations§
Source§impl Clone for SqliteSyntaxFlags
impl Clone for SqliteSyntaxFlags
Source§fn clone(&self) -> SqliteSyntaxFlags
fn clone(&self) -> SqliteSyntaxFlags
Returns a duplicate 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 SqliteSyntaxFlags
impl Debug for SqliteSyntaxFlags
Source§impl Default for SqliteSyntaxFlags
impl Default for SqliteSyntaxFlags
Source§fn default() -> SqliteSyntaxFlags
fn default() -> SqliteSyntaxFlags
Returns the “default value” for a type. Read more
impl Copy for SqliteSyntaxFlags
Auto Trait Implementations§
impl Freeze for SqliteSyntaxFlags
impl RefUnwindSafe for SqliteSyntaxFlags
impl Send for SqliteSyntaxFlags
impl Sync for SqliteSyntaxFlags
impl Unpin for SqliteSyntaxFlags
impl UnsafeUnpin for SqliteSyntaxFlags
impl UnwindSafe for SqliteSyntaxFlags
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