pub fn new<
        C: TryInto<CollectionName, Error = InvalidNameError>,
        N: TryInto<Name, Error = InvalidNameError>,
    >(
        collection: C,
        name: N,
    ) -> Result<Self, InvalidNameError> {
        let collection = collection.try_into()?;
        let name = name.try_into()?;
        Ok(Self { collection, name })
    }
/// Creates a new view name.
Creates a new view name.
Creates a new view name .
pub fn new<
        C: TryInto<CollectionName, Error = InvalidNameError>,
        N: TryInto<Name, Error = InvalidNameError>,
    >(
        collection: C,
        name: N,
    ) -> Result<Self, InvalidNameError> {
        let collection = collection.try_into()?;
        let name = name.try_into()?;
        Ok(Self { collection, name })
    }
pub fn new < C : TryInto < CollectionName , Error = InvalidNameError > , N : TryInto < Name , Error = InvalidNameError > , > ( collection : C , name : N , ) -> Result < Self , InvalidNameError > { let collection = collection . try_into ( ) ? ; let name = name . try_into ( ) ? ; Ok ( Self { collection , name } ) }
Creates a new view name.
Creates a new view name .
collection
C
name
N
collection
C
name
N