Struct testdrop::TestDrop [] [src]

pub struct TestDrop { /* fields omitted */ }

A struct to help test drop related issues.

See the module documentation for examples of usage.

Methods

impl TestDrop
[src]

Creates a new TestDrop.

Creates a new Item and returns the id of the item and the item. The id of the item can be used with assert_drop and assert_no_drop.

Returns the number of tracked items.

Returns the number of dropped items so far.

Asserts that an item was dropped.

Panics

If the item was not dropped.

Asserts that an item was not dropped.

Panics

If the item was dropped.

Trait Implementations

impl Default for TestDrop
[src]

Returns the "default value" for a type. Read more

impl Debug for TestDrop
[src]

Formats the value using the given formatter.