pub struct NestingValidator;Expand description
Validator for FO element nesting
Implementations§
Source§impl NestingValidator
impl NestingValidator
Sourcepub fn can_contain(
parent: &FoNodeData<'_>,
child: &FoNodeData<'_>,
) -> Result<()>
pub fn can_contain( parent: &FoNodeData<'_>, child: &FoNodeData<'_>, ) -> Result<()>
Check if a child element can be nested inside a parent element
Auto Trait Implementations§
impl Freeze for NestingValidator
impl RefUnwindSafe for NestingValidator
impl Send for NestingValidator
impl Sync for NestingValidator
impl Unpin for NestingValidator
impl UnsafeUnpin for NestingValidator
impl UnwindSafe for NestingValidator
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more