pub enum ChooseTest<'a> {
Disambiguate,
IsNumeric(&'a [Variable]),
IsUncertainDate(&'a [DateVariable]),
Locator(&'a [Locator]),
Position(&'a [TestPosition]),
Type(&'a [Kind]),
Variable(&'a [Variable]),
}
Expand description
A single test in a conditional group.
Variants§
Disambiguate
Other than this choose, two elements would result in the same rendering.
IsNumeric(&'a [Variable])
The variable contains numeric data.
IsUncertainDate(&'a [DateVariable])
The variable contains an approximate date.
Locator(&'a [Locator])
The locator matches the given type.
Position(&'a [TestPosition])
Tests the position of this citation in the citations to the same item. Only ever true for citations.
Type(&'a [Kind])
Tests whether the item is of a certain type.
Variable(&'a [Variable])
Tests whether the default form of this variable is non-empty.
Trait Implementations§
source§impl<'a> Clone for ChooseTest<'a>
impl<'a> Clone for ChooseTest<'a>
source§fn clone(&self) -> ChooseTest<'a>
fn clone(&self) -> ChooseTest<'a>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<'a> Debug for ChooseTest<'a>
impl<'a> Debug for ChooseTest<'a>
source§impl<'a> Hash for ChooseTest<'a>
impl<'a> Hash for ChooseTest<'a>
source§impl<'a> PartialEq for ChooseTest<'a>
impl<'a> PartialEq for ChooseTest<'a>
impl<'a> Eq for ChooseTest<'a>
impl<'a> StructuralPartialEq for ChooseTest<'a>
Auto Trait Implementations§
impl<'a> Freeze for ChooseTest<'a>
impl<'a> RefUnwindSafe for ChooseTest<'a>
impl<'a> Send for ChooseTest<'a>
impl<'a> Sync for ChooseTest<'a>
impl<'a> Unpin for ChooseTest<'a>
impl<'a> UnwindSafe for ChooseTest<'a>
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)