pub struct TestCode(/* private fields */);Expand description
The result of calling test.
Implementations§
Source§impl TestCode
impl TestCode
Sourcepub fn in_transaction(&self) -> bool
pub fn in_transaction(&self) -> bool
Returns true if the current thread is in a hardware transaction.
Sourcepub fn is_suspended(&self) -> bool
pub fn is_suspended(&self) -> bool
Returns true if the current thread is in a suspended hardware transaction.
Trait Implementations§
Source§impl Ord for TestCode
impl Ord for TestCode
Source§impl PartialOrd for TestCode
impl PartialOrd for TestCode
impl Copy for TestCode
impl Eq for TestCode
impl StructuralPartialEq for TestCode
Auto Trait Implementations§
impl Freeze for TestCode
impl RefUnwindSafe for TestCode
impl Send for TestCode
impl Sync for TestCode
impl Unpin for TestCode
impl UnwindSafe for TestCode
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