-
Notifications
You must be signed in to change notification settings - Fork 332
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add #[derive(Clone, Copy...
on all bitflags
#1396
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -59,6 +59,7 @@ use crate::{str_to_cstring, Connection, Error, InnerConnection, Result}; | |
// ffi::sqlite3_vtab_cursor => VTabCursor | ||
|
||
/// Virtual table kind | ||
#[derive(Copy, Clone, Debug)] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Used only as a constant at compile time. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. reverted |
||
pub enum VTabKind { | ||
/// Non-eponymous | ||
Default, | ||
|
@@ -322,7 +323,7 @@ pub trait UpdateVTab<'vtab>: CreateVTab<'vtab> { | |
|
||
/// Index constraint operator. | ||
/// See [Virtual Table Constraint Operator Codes](https://sqlite.org/c3ref/c_index_constraint_eq.html) for details. | ||
#[derive(Debug, Eq, PartialEq)] | ||
#[derive(Copy, Clone, Debug, Eq, PartialEq)] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Created only by SQLite itself (readonly on rusqlite side) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. reverted |
||
#[allow(non_snake_case, non_camel_case_types, missing_docs)] | ||
#[allow(clippy::upper_case_acronyms)] | ||
pub enum IndexConstraintOp { | ||
|
@@ -373,6 +374,7 @@ bitflags::bitflags! { | |
/// Virtual table scan flags | ||
/// See [Function Flags](https://sqlite.org/c3ref/c_index_scan_unique.html) for details. | ||
#[repr(C)] | ||
#[derive(Copy, Clone, Debug)] | ||
pub struct IndexFlags: ::std::os::raw::c_int { | ||
/// Default | ||
const NONE = 0; | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,7 +28,7 @@ const SERIES_COLUMN_STOP: c_int = 2; | |
const SERIES_COLUMN_STEP: c_int = 3; | ||
|
||
bitflags::bitflags! { | ||
#[derive(Clone, Copy)] | ||
#[derive(Clone, Copy, Debug)] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Use only to pass information between There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. reverted |
||
#[repr(C)] | ||
struct QueryPlanFlags: ::std::os::raw::c_int { | ||
// start = $value -- constraint exists | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Created only by SQLite (readonly on rusqlite side)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
reverted