pub enum TestingAttributes {
TestOnly,
Test,
ExpectedFailure,
}
Variants§
Implementations§
source§impl TestingAttributes
impl TestingAttributes
pub const TEST: &'static str = "test"
pub const EXPECTED_FAILURE: &'static str = "expected_failure"
pub const TEST_ONLY: &'static str = "test_only"
pub const CODE_ASSIGNMENT_NAME: &'static str = "abort_code"
pub fn resolve(attribute_str: &str) -> Option<Self>
pub fn name(&self) -> &str
Trait Implementations§
source§impl Clone for TestingAttributes
impl Clone for TestingAttributes
source§fn clone(&self) -> TestingAttributes
fn clone(&self) -> TestingAttributes
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 Debug for TestingAttributes
impl Debug for TestingAttributes
source§impl Ord for TestingAttributes
impl Ord for TestingAttributes
source§fn cmp(&self, other: &TestingAttributes) -> Ordering
fn cmp(&self, other: &TestingAttributes) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<TestingAttributes> for TestingAttributes
impl PartialEq<TestingAttributes> for TestingAttributes
source§fn eq(&self, other: &TestingAttributes) -> bool
fn eq(&self, other: &TestingAttributes) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<TestingAttributes> for TestingAttributes
impl PartialOrd<TestingAttributes> for TestingAttributes
source§fn partial_cmp(&self, other: &TestingAttributes) -> Option<Ordering>
fn partial_cmp(&self, other: &TestingAttributes) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for TestingAttributes
impl StructuralEq for TestingAttributes
impl StructuralPartialEq for TestingAttributes
Auto Trait Implementations§
impl RefUnwindSafe for TestingAttributes
impl Send for TestingAttributes
impl Sync for TestingAttributes
impl Unpin for TestingAttributes
impl UnwindSafe for TestingAttributes
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.