Struct odbc_api::Bit [−][src]
pub struct Bit(pub u8);
Expand description
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.
Tuple Fields
0: u8
Implementations
Trait Implementations
The identifier of the C data type of the value buffer. When it is retrieving data from the
data source with fetch
, the driver converts the data to this type. When it sends data to
the source, the driver converts the data from this type. Read more
Indicates the length of variable sized types. May be zero for fixed sized types.
Pointer to a value corresponding to the one described by cdata_type
.
Maximum length of the type in bytes (not characters). It is required to index values in
bound buffers, if more than one parameter is bound. Can be set to zero for types not bound
as parameter arrays, i.e. CStr
. Read more
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for Bit
impl UnwindSafe for Bit
Blanket Implementations
Mutably borrows from an owned value. Read more