#[non_exhaustive]pub enum NoScenario {
NoneMatches,
SeveralMatch(Vec<String>),
}Expand description
Why a document has no scenario, in a rule set that selects by scenario
(RuleSet::selects_by_scenario): the document
is then invalid and no stylesheet runs on it, as the KoSIT validator rejects a
document with its fallback scenario.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
NoneMatches
The match expression of no scenario is true on the document.
SeveralMatch(Vec<String>)
Those of several scenarios are: their names, in the order of the manifest.
Trait Implementations§
Source§impl Clone for NoScenario
impl Clone for NoScenario
Source§impl Debug for NoScenario
impl Debug for NoScenario
Source§impl Display for NoScenario
impl Display for NoScenario
impl Eq for NoScenario
Source§impl PartialEq for NoScenario
impl PartialEq for NoScenario
impl StructuralPartialEq for NoScenario
Auto Trait Implementations§
impl Forget for NoScenario
impl Freeze for NoScenario
impl RefUnwindSafe for NoScenario
impl Send for NoScenario
impl Sync for NoScenario
impl Unpin for NoScenario
impl UnsafeUnpin for NoScenario
impl UnwindSafe for NoScenario
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