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) -> Self
pub fn new(batch: &'r OdbcBatch, row_index: usize, column_index: usize) -> Self
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: TryFromInt + Type<Odbc>>(&self) -> Result<T>
pub fn try_float<T: TryFromFloat + Type<Odbc>>(&self) -> Result<T>
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>) -> Self
fn from(value: OdbcValueRef<'r>) -> Self
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