toasty 0.2.0

An async ORM for Rust supporting SQL and NoSQL databases
Documentation
1
2
3
4
5
6
7
8
9
use std::marker::PhantomData;

/// A sized marker type representing "list of `M`".
///
/// Used as a type parameter to [`Statement`], [`Load`](crate::schema::Load), and other
/// types to encode that the result is a collection of `M` values. Unlike `[M]`
/// (which is unsized), `List<M>` is always `Sized`, so it composes cleanly in
/// tuples: `(List<User>, List<Todo>)` is valid.
pub struct List<M>(PhantomData<M>);