pub struct PgIndexFlags { /* private fields */ }Expand description
PostgreSQL index flag metadata.
Implementations§
Source§impl PgIndexFlags
impl PgIndexFlags
Sourcepub const fn expression(self, value: bool) -> Self
pub const fn expression(self, value: bool) -> Self
Sets the expression-index flag.
Sourcepub const fn concurrent(self, value: bool) -> Self
pub const fn concurrent(self, value: bool) -> Self
Sets the concurrent-build flag.
Sourcepub const fn is_primary(self) -> bool
pub const fn is_primary(self) -> bool
Returns true when the primary-index flag is set.
Sourcepub const fn is_partial(self) -> bool
pub const fn is_partial(self) -> bool
Returns true when the partial-index flag is set.
Sourcepub const fn is_expression(self) -> bool
pub const fn is_expression(self) -> bool
Returns true when the expression-index flag is set.
Sourcepub const fn is_concurrent(self) -> bool
pub const fn is_concurrent(self) -> bool
Returns true when the concurrent-build flag is set.
Sourcepub const fn is_invalid(self) -> bool
pub const fn is_invalid(self) -> bool
Returns true when the invalid-index flag is set.
Trait Implementations§
Source§impl Clone for PgIndexFlags
impl Clone for PgIndexFlags
Source§fn clone(&self) -> PgIndexFlags
fn clone(&self) -> PgIndexFlags
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PgIndexFlags
impl Debug for PgIndexFlags
Source§impl Default for PgIndexFlags
impl Default for PgIndexFlags
Source§fn default() -> PgIndexFlags
fn default() -> PgIndexFlags
Returns the “default value” for a type. Read more
Source§impl Hash for PgIndexFlags
impl Hash for PgIndexFlags
Source§impl Ord for PgIndexFlags
impl Ord for PgIndexFlags
Source§fn cmp(&self, other: &PgIndexFlags) -> Ordering
fn cmp(&self, other: &PgIndexFlags) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for PgIndexFlags
impl PartialEq for PgIndexFlags
Source§fn eq(&self, other: &PgIndexFlags) -> bool
fn eq(&self, other: &PgIndexFlags) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for PgIndexFlags
impl PartialOrd for PgIndexFlags
impl Copy for PgIndexFlags
impl Eq for PgIndexFlags
impl StructuralPartialEq for PgIndexFlags
Auto Trait Implementations§
impl Freeze for PgIndexFlags
impl RefUnwindSafe for PgIndexFlags
impl Send for PgIndexFlags
impl Sync for PgIndexFlags
impl Unpin for PgIndexFlags
impl UnsafeUnpin for PgIndexFlags
impl UnwindSafe for PgIndexFlags
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