//! Error-collection helpers for STIX validation.
use StixError;
/// Checks a Result to see if it is an Error. If it is, add that Error to a Vec of StixErrors
/// Return a Vec of StixErrors as a single Error, unless the Vec is empty
///
/// This is useful when checking multiple possible sources of error, such as during STIX validation