pub fn validate(doc: &AdfDocument) -> Result<(), AdfValidationError>Expand description
Returns Ok(()) if doc has no nesting violations, else an
AdfValidationError listing every violation found.
Borrows doc; use ValidatedAdfDocument::try_new when the goal is to
produce a validated wrapper rather than just check.
ยงErrors
Returns AdfValidationError when the document violates one or more
allowed-children rules in the upstream content model.