pub fn validated(name: impl Into<BString>) -> Result<BString, Error>
Return name if it is valid or convert it into an Error.
name
Error