pub enum AssertionSource {
Disabled,
FragmentBuffer,
MainDocument,
}Expand description
Selects which assertion evaluation path is active.
XSD 1.1 assertions can be evaluated via two mutually exclusive paths:
FragmentBuffer— inline fragment buffering during streaming validationMainDocument— externalBufferDocument, assertions deferred to Phase 2
The Disabled default means no assertion evaluation occurs.
Variants§
Disabled
No assertion evaluation. PROCESS_ASSERTIONS must NOT be set.
FragmentBuffer
Inline fragment buffering. PROCESS_ASSERTIONS MUST be set.
MainDocument
External BufferDocument. PROCESS_ASSERTIONS must NOT be set.
Trait Implementations§
Source§impl Clone for AssertionSource
impl Clone for AssertionSource
Source§fn clone(&self) -> AssertionSource
fn clone(&self) -> AssertionSource
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for AssertionSource
Source§impl Debug for AssertionSource
impl Debug for AssertionSource
Source§impl Default for AssertionSource
impl Default for AssertionSource
Source§fn default() -> AssertionSource
fn default() -> AssertionSource
Returns the “default value” for a type. Read more
impl Eq for AssertionSource
Source§impl PartialEq for AssertionSource
impl PartialEq for AssertionSource
Source§fn eq(&self, other: &AssertionSource) -> bool
fn eq(&self, other: &AssertionSource) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AssertionSource
Auto Trait Implementations§
impl Freeze for AssertionSource
impl RefUnwindSafe for AssertionSource
impl Send for AssertionSource
impl Sync for AssertionSource
impl Unpin for AssertionSource
impl UnsafeUnpin for AssertionSource
impl UnwindSafe for AssertionSource
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