pub struct ParameterContract { /* private fields */ }Expand description
Exact parameter shape owned by one parsed statement.
Implementations§
Source§impl ParameterContract
impl ParameterContract
Sourcepub fn positional_count(&self) -> usize
pub fn positional_count(&self) -> usize
Number of positional values required by the statement.
Sourcepub fn named_params(&self) -> &[SmartString]
pub fn named_params(&self) -> &[SmartString]
Exact set of named bindings required by the statement.
pub fn has_params(&self) -> bool
Trait Implementations§
Source§impl Clone for ParameterContract
impl Clone for ParameterContract
Source§fn clone(&self) -> ParameterContract
fn clone(&self) -> ParameterContract
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 ParameterContract
impl Debug for ParameterContract
Source§impl Default for ParameterContract
impl Default for ParameterContract
Source§fn default() -> ParameterContract
fn default() -> ParameterContract
Returns the “default value” for a type. Read more
impl Eq for ParameterContract
Source§impl PartialEq for ParameterContract
impl PartialEq for ParameterContract
impl StructuralPartialEq for ParameterContract
Auto Trait Implementations§
impl Freeze for ParameterContract
impl RefUnwindSafe for ParameterContract
impl Send for ParameterContract
impl Sync for ParameterContract
impl Unpin for ParameterContract
impl UnsafeUnpin for ParameterContract
impl UnwindSafe for ParameterContract
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<T> CompactArcDrop for T
impl<T> CompactArcDrop for T
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.