Struct duckdb_bitstring::Bitstring
source · pub struct Bitstring<'a>(/* private fields */);
Expand description
Type representing a bitstring that can be converted to a DuckDB BIT type (or the other way around).
Under the hood this is just a wrapper for bit_vec::BitVec
with the necessary traits (FromSql
/ToSql
) implemented.
Use Bitstring::from
to obtain a Bitstring
from an owned or borrowed bit_vec::BitVec
.
Implementations§
Trait Implementations§
source§impl FromSql for Bitstring<'_>
impl FromSql for Bitstring<'_>
source§fn column_result(value: ValueRef<'_>) -> FromSqlResult<Self>
fn column_result(value: ValueRef<'_>) -> FromSqlResult<Self>
Converts DuckDB value into Rust value.
Auto Trait Implementations§
impl<'a> Freeze for Bitstring<'a>
impl<'a> RefUnwindSafe for Bitstring<'a>
impl<'a> Send for Bitstring<'a>
impl<'a> Sync for Bitstring<'a>
impl<'a> Unpin for Bitstring<'a>
impl<'a> UnwindSafe for Bitstring<'a>
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