Skip to main content

BindData

Trait BindData 

Source
pub trait BindData: Send + 'static {
    // Required method
    fn len(&self) -> usize;

    // Provided method
    fn is_empty(&self) -> bool { ... }
}
Available on crate feature i-implement-a-third-party-backend-and-opt-into-breaking-changes only.
Expand description

A helper trait indicating that this is a bind data container

Required Methods§

Source

fn len(&self) -> usize

How many bind values does this container contain

Provided Methods§

Source

fn is_empty(&self) -> bool

Is this set of bind data empty

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl BindData for SqliteBindCollectorData

Available on crate feature __sqlite-shared only.
Source§

impl<DB> BindData for RawBytesBindCollector<DB>
where for<'a> DB: Backend + TypeMetadata + Backend<BindCollector<'a> = Self> + 'static, <DB as TypeMetadata>::TypeMetadata: Debug + Clone + Send,