Instance Methodswift-bson 0.3.1BSONDecoding->BSONABI
expect(length:)
Throws an ShapeError
if the relevant collection does not contain the specified number of elements.
func expect(length: Int) throws
Throws an ShapeError
if the relevant collection does not contain the specified number of elements.
func expect(length: Int) throws