func (sr *SingleResult) DecodeBytes() (bson.Raw, error) {
	if sr.err != nil {
		return sr.rdr, sr.err
	}

	if sr.err = sr.setRdrContents(); sr.err != nil {
		return nil, sr.err
	}
	return sr.rdr, nil
}
// DecodeBytes will return the document represented by this SingleResult as a bson.Raw. If there was an error from the
// operation that created this SingleResult, both the result and that error will be returned. If the operation returned
// no documents, this will return (nil, ErrNoDocuments).
DecodeBytes will return the document represented by this SingleResult as a bson.Raw. If there was an error from the
operation that created this SingleResult, both the result and that error will be returned. If the operation returned
no documents, this will return (nil, ErrNoDocuments).
// DecodeBytes will return the document represented by this SingleResult as a bson . Raw . If there was an error from the // operation that created this SingleResult both the result and that error will be returned . If the operation returned // no documents this will return ( nil ErrNoDocuments ) .
func (sr *SingleResult) DecodeBytes() (bson.Raw, error) {
	if sr.err != nil {
		return sr.rdr, sr.err
	}
	if sr.err = sr.setRdrContents(); sr.err != nil {
		return nil, sr.err
	}
	return sr.rdr, nil
}
func ( sr * SingleResult ) DecodeBytes ( ) ( bson . Raw , error ) { if sr . err != nil { return sr . rdr , sr . err } if sr . err = sr . setRdrContents ( ) ; sr . err != nil { return nil , sr . err } return sr . rdr , nil }
DecodeBytes will return the document represented by this SingleResult as a bson.Raw.
DecodeBytes will return the document represented by this SingleResult as a bson . Raw .