pub fn new<I, N>(typ: RelationType, names: I) -> Self
    where
        I: IntoIterator<Item = N>,
        N: Into<ColumnName>,
    {
        let names: Vec<_> = names.into_iter().map(|name| name.into()).collect();
        assert_eq!(typ.column_types.len(), names.len());
        RelationDesc { typ, names }
    }
/// Constructs a new `RelationDesc` from a `RelationType` and an iterator
/// over column names.
///
/// # Panics
///
/// Panics if the arity of the `RelationType` is not equal to the number of
/// items in `names`.
Constructs a new `RelationDesc` from a `RelationType` and an iterator
over column names.
Constructs a new ` RelationDesc ` from a ` RelationType ` and an iterator over column names .
pub fn new<I, N>(typ: RelationType, names: I) -> Self
    where
        I: IntoIterator<Item = N>,
        N: Into<ColumnName>,
    {
        let names: Vec<_> = names.into_iter().map(|name| name.into()).collect();
        assert_eq!(typ.column_types.len(), names.len());
        RelationDesc { typ, names }
    }
pub fn new < I , N > ( typ : RelationType , names : I ) -> Self where I : IntoIterator < Item = N > , N : Into < ColumnName > , { let names : Vec < _ > = names . into_iter ( ) . map ( | name | name . into ( ) ) . collect ( ) ; assert_eq ! ( typ column_types len ( ) names len ( ) ) ; RelationDesc { typ , names } }
Constructs a new `RelationDesc` from a `RelationType` and an iterator
over column names.
Constructs a new ` RelationDesc ` from a ` RelationType ` and an iterator over column names .
typ
RelationType
names
I
typ
RelationType
names
I
panics
Panics if the arity of the `RelationType` is not equal to the number of
items in `names`.
Panics if the arity of the ` RelationType ` is not equal to the number of items in ` names ` .