pub struct OdbcValueRef<'r> { /* private fields */ }
Available on crate feature
odbc
only.Implementationsยง
Sourceยงimpl<'r> OdbcValueRef<'r>
Utility methods for OdbcValueRef
impl<'r> OdbcValueRef<'r>
Utility methods for OdbcValueRef
Sourcepub fn new(
batch: &'r OdbcBatch,
row_index: usize,
column_index: usize,
) -> OdbcValueRef<'r>
pub fn new( batch: &'r OdbcBatch, row_index: usize, column_index: usize, ) -> OdbcValueRef<'r>
Create a new OdbcValueRef from batch, row index, and column index
Sourcepub fn get_raw(&self) -> Option<OdbcValueType>
pub fn get_raw(&self) -> Option<OdbcValueType>
Get the raw value from the column data
pub fn try_int<T>(&self) -> Result<T, Error>
pub fn try_float<T>(&self) -> Result<T, Error>
Trait Implementationsยง
Sourceยงimpl<'r> Debug for OdbcValueRef<'r>
impl<'r> Debug for OdbcValueRef<'r>
Sourceยงimpl<'r> From<OdbcValueRef<'r>> for AnyValueRef<'r>
impl<'r> From<OdbcValueRef<'r>> for AnyValueRef<'r>
Sourceยงfn from(value: OdbcValueRef<'r>) -> AnyValueRef<'r>
fn from(value: OdbcValueRef<'r>) -> AnyValueRef<'r>
Converts to this type from the input type.
Sourceยงimpl<'r> ValueRef<'r> for OdbcValueRef<'r>
impl<'r> ValueRef<'r> for OdbcValueRef<'r>
Auto Trait Implementationsยง
impl<'r> Freeze for OdbcValueRef<'r>
impl<'r> RefUnwindSafe for OdbcValueRef<'r>
impl<'r> Send for OdbcValueRef<'r>
impl<'r> Sync for OdbcValueRef<'r>
impl<'r> Unpin for OdbcValueRef<'r>
impl<'r> UnwindSafe for OdbcValueRef<'r>
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> 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