pub enum TestListOrder {
Sorted,
Unsorted,
}🔬This is a nightly-only experimental API. (
test)Expand description
Whether a TestList’s tests are known to be sorted by name.
When tests are sorted, filter_tests can use binary search for --exact
matches instead of a linear scan.
Variants§
Sorted
🔬This is a nightly-only experimental API. (
test)Tests are sorted by name. This is guaranteed for tests generated by
rustc --test (see mk_tests_slice in
compiler/rustc_builtin_macros/src/test_harness.rs).
Unsorted
🔬This is a nightly-only experimental API. (
test)Test order is unknown; binary search must not be used.
Trait Implementations§
Source§impl Clone for TestListOrder
impl Clone for TestListOrder
Source§fn clone(&self) -> TestListOrder
fn clone(&self) -> TestListOrder
Returns a duplicate 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 Debug for TestListOrder
impl Debug for TestListOrder
Source§impl PartialEq for TestListOrder
impl PartialEq for TestListOrder
impl Copy for TestListOrder
impl Eq for TestListOrder
impl StructuralPartialEq for TestListOrder
Auto Trait Implementations§
impl Freeze for TestListOrder
impl RefUnwindSafe for TestListOrder
impl Send for TestListOrder
impl Sync for TestListOrder
impl Unpin for TestListOrder
impl UnsafeUnpin for TestListOrder
impl UnwindSafe for TestListOrder
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