Struct odbc_api::Bit [−][src]
New type wrapping u8 and binding as SQL_BIT.
If rust would guarantee the representation of bool to be an u8, bool would be the obvious
choice instead. Alas it is not and someday on some platform bool might be something else than
a u8 so let’s use this new type instead.
Implementations
impl Bit[src]
pub fn as_bool(self) -> bool[src]
Maps 1 to true, 0 to false. Panics if Bit should be invalid (not 0 or 1).
Trait Implementations
impl CData for Bit[src]
fn cdata_type(&self) -> CDataType[src]
fn indicator_ptr(&self) -> *const isize[src]
fn value_ptr(&self) -> *const c_void[src]
fn buffer_length(&self) -> isize[src]
impl Clone for Bit[src]
impl Copy for Bit[src]
impl Debug for Bit[src]
impl Default for Bit[src]
impl Eq for Bit[src]
impl HasDataType for Bit[src]
impl InputParameter for Bit[src]
impl Ord for Bit[src]
fn cmp(&self, other: &Bit) -> Ordering[src]
#[must_use]pub fn max(self, other: Self) -> Self1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self1.50.0[src]
impl PartialEq<Bit> for Bit[src]
impl PartialOrd<Bit> for Bit[src]
fn partial_cmp(&self, other: &Bit) -> Option<Ordering>[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool1.0.0[src]
impl StructuralEq for Bit[src]
impl StructuralPartialEq for Bit[src]
Auto Trait Implementations
impl RefUnwindSafe for Bit
impl Send for Bit
impl Sync for Bit
impl Unpin for Bit
impl UnwindSafe for Bit
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,