pub struct SqlParameterIndex(/* private fields */);Expand description
A one-based SQL parameter index.
Implementations§
Source§impl SqlParameterIndex
impl SqlParameterIndex
Sourcepub const fn new(index: u32) -> Result<Self, SqlParameterError>
pub const fn new(index: u32) -> Result<Self, SqlParameterError>
Creates a one-based parameter index.
§Errors
Returns SqlParameterError::ZeroIndex when index is zero.
Trait Implementations§
Source§impl Clone for SqlParameterIndex
impl Clone for SqlParameterIndex
Source§fn clone(&self) -> SqlParameterIndex
fn clone(&self) -> SqlParameterIndex
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 SqlParameterIndex
impl Debug for SqlParameterIndex
Source§impl Display for SqlParameterIndex
impl Display for SqlParameterIndex
Source§impl Hash for SqlParameterIndex
impl Hash for SqlParameterIndex
Source§impl Ord for SqlParameterIndex
impl Ord for SqlParameterIndex
Source§fn cmp(&self, other: &SqlParameterIndex) -> Ordering
fn cmp(&self, other: &SqlParameterIndex) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for SqlParameterIndex
impl PartialEq for SqlParameterIndex
Source§fn eq(&self, other: &SqlParameterIndex) -> bool
fn eq(&self, other: &SqlParameterIndex) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for SqlParameterIndex
impl PartialOrd for SqlParameterIndex
impl Copy for SqlParameterIndex
impl Eq for SqlParameterIndex
impl StructuralPartialEq for SqlParameterIndex
Auto Trait Implementations§
impl Freeze for SqlParameterIndex
impl RefUnwindSafe for SqlParameterIndex
impl Send for SqlParameterIndex
impl Sync for SqlParameterIndex
impl Unpin for SqlParameterIndex
impl UnsafeUnpin for SqlParameterIndex
impl UnwindSafe for SqlParameterIndex
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