pub struct OdbcTypeInfo { /* private fields */ }Expand description
Type information for an ODBC value.
Implementations§
Source§impl OdbcTypeInfo
impl OdbcTypeInfo
Sourcepub const fn new(data_type: DataType) -> Self
pub const fn new(data_type: DataType) -> Self
Creates type information from an odbc-api data type.
Sourcepub const fn varchar(length: Option<NonZeroUsize>) -> Self
pub const fn varchar(length: Option<NonZeroUsize>) -> Self
Creates VARCHAR type information.
Sourcepub const fn varbinary(length: Option<NonZeroUsize>) -> Self
pub const fn varbinary(length: Option<NonZeroUsize>) -> Self
Creates VARBINARY type information.
Trait Implementations§
Source§impl Clone for OdbcTypeInfo
impl Clone for OdbcTypeInfo
Source§fn clone(&self) -> OdbcTypeInfo
fn clone(&self) -> OdbcTypeInfo
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 OdbcTypeInfo
impl Debug for OdbcTypeInfo
Source§impl Display for OdbcTypeInfo
impl Display for OdbcTypeInfo
Source§impl PartialEq for OdbcTypeInfo
impl PartialEq for OdbcTypeInfo
Source§fn eq(&self, other: &OdbcTypeInfo) -> bool
fn eq(&self, other: &OdbcTypeInfo) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl<'a> TryFrom<&'a OdbcTypeInfo> for AnyTypeInfo
impl<'a> TryFrom<&'a OdbcTypeInfo> for AnyTypeInfo
Source§impl TypeInfo for OdbcTypeInfo
impl TypeInfo for OdbcTypeInfo
fn is_null(&self) -> bool
impl Eq for OdbcTypeInfo
impl StructuralPartialEq for OdbcTypeInfo
Auto Trait Implementations§
impl Freeze for OdbcTypeInfo
impl RefUnwindSafe for OdbcTypeInfo
impl Send for OdbcTypeInfo
impl Sync for OdbcTypeInfo
impl Unpin for OdbcTypeInfo
impl UnsafeUnpin for OdbcTypeInfo
impl UnwindSafe for OdbcTypeInfo
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.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more