Struct rusqlite::OpenFlags []

pub struct OpenFlags {
    // some fields omitted
}

Flags for opening SQLite database connections. See sqlite3_open_v2 for details.

Methods

impl OpenFlags

fn empty() -> OpenFlags

Returns an empty set of flags.

fn all() -> OpenFlags

Returns the set containing all flags.

fn bits(&self) -> c_int

Returns the raw value of the flags currently stored.

fn from_bits(bits: c_int) -> Option<OpenFlags>

Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.

fn from_bits_truncate(bits: c_int) -> OpenFlags

Convert from underlying bit representation, dropping any bits that do not correspond to flags.

fn is_empty(&self) -> bool

Returns true if no flags are currently stored.

fn is_all(&self) -> bool

Returns true if all flags are currently set.

fn intersects(&self, other: OpenFlags) -> bool

Returns true if there are flags common to both self and other.

fn contains(&self, other: OpenFlags) -> bool

Returns true all of the flags in other are contained within self.

fn insert(&mut self, other: OpenFlags)

Inserts the specified flags in-place.

fn remove(&mut self, other: OpenFlags)

Removes the specified flags in-place.

fn toggle(&mut self, other: OpenFlags)

Toggles the specified flags in-place.

Trait Implementations

impl BitOr for OpenFlags

type Output = OpenFlags

fn bitor(self, other: OpenFlags) -> OpenFlags

impl BitXor for OpenFlags

type Output = OpenFlags

fn bitxor(self, other: OpenFlags) -> OpenFlags

impl BitAnd for OpenFlags

type Output = OpenFlags

fn bitand(self, other: OpenFlags) -> OpenFlags

impl Sub for OpenFlags

type Output = OpenFlags

fn sub(self, other: OpenFlags) -> OpenFlags

impl Not for OpenFlags

type Output = OpenFlags

fn not(self) -> OpenFlags

impl Default for OpenFlags

fn default() -> OpenFlags

Derived Implementations

impl Hash for OpenFlags

fn hash<__H: Hasher>(&self, __arg_0: &mut __H)

1.3.0fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher

impl Ord for OpenFlags

fn cmp(&self, __arg_0: &OpenFlags) -> Ordering

impl PartialOrd for OpenFlags

fn partial_cmp(&self, __arg_0: &OpenFlags) -> Option<Ordering>

fn lt(&self, __arg_0: &OpenFlags) -> bool

fn le(&self, __arg_0: &OpenFlags) -> bool

fn gt(&self, __arg_0: &OpenFlags) -> bool

fn ge(&self, __arg_0: &OpenFlags) -> bool

impl Clone for OpenFlags

fn clone(&self) -> OpenFlags

1.0.0fn clone_from(&mut self, source: &Self)

impl Eq for OpenFlags

impl PartialEq for OpenFlags

fn eq(&self, __arg_0: &OpenFlags) -> bool

fn ne(&self, __arg_0: &OpenFlags) -> bool

impl Copy for OpenFlags