pub struct PgBit {
pub data: Vec<u8>,
pub bit_length: i32,
}Expand description
PostgreSQL BIT / VARBIT type.
Stores a fixed- or variable-length bit string.
data holds raw bytes (MSB-first, padded with trailing zeros in the last byte).
bit_length is the actual number of significant bits.
Fields§
§data: Vec<u8>§bit_length: i32Implementations§
Trait Implementations§
Source§impl ToSql for PgBit
impl ToSql for PgBit
impl Eq for PgBit
impl StructuralPartialEq for PgBit
Auto Trait Implementations§
impl Freeze for PgBit
impl RefUnwindSafe for PgBit
impl Send for PgBit
impl Sync for PgBit
impl Unpin for PgBit
impl UnsafeUnpin for PgBit
impl UnwindSafe for PgBit
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.