Enum duckdb_bitstring::BitstringError
source · pub enum BitstringError {
EmptyBitstring,
RawDataBadPadding(u8),
RawDataTooShort(usize),
}
Variants§
EmptyBitstring
Occurs when trying to convert an empty Bitstring
to a DuckDB BIT type (as that is not supported by DuckDB).
RawDataBadPadding(u8)
Occurs when DuckDB returns an invalid representation of a BIT type. This should not happen in practice so please let me know if you run into this error.
RawDataTooShort(usize)
Occurs when DuckDB returns an invalid representation of a BIT type. This should not happen in practice so please let me know if you run into this error.
Trait Implementations§
source§impl Clone for BitstringError
impl Clone for BitstringError
source§fn clone(&self) -> BitstringError
fn clone(&self) -> BitstringError
Returns a copy of the value. Read more
1.0.0 · 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 BitstringError
impl Debug for BitstringError
source§impl Display for BitstringError
impl Display for BitstringError
source§impl Error for BitstringError
impl Error for BitstringError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<BitstringError> for FromSqlError
impl From<BitstringError> for FromSqlError
source§fn from(value: BitstringError) -> Self
fn from(value: BitstringError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for BitstringError
impl RefUnwindSafe for BitstringError
impl Send for BitstringError
impl Sync for BitstringError
impl Unpin for BitstringError
impl UnwindSafe for BitstringError
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