Struct qmc::util::bondcontainer::BondContainer[][src]

pub struct BondContainer<T: Clone + Into<usize>> { /* fields omitted */ }
Expand description

A HashSet with random sampling.

Implementations

Return sum of all weights in BondContainer.

Get a random weighted entry.

Remove a given value.

Check if a given element has been inserted.

Get the weight of the value if it’s in the container.

Insert an element. Returns true if the element is new.

Clear the set

Get number of elements in set.

Check if empty.

Iterate through items.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Get an instance of T

Return an instance of T

Get an instance of T

Return an instance of T

Get an instance of T

Return an instance of T

Get an instance of T

Return an instance of T

Get an instance of T

Return an instance of T

Get an instance of T

Return an instance of T

Reset the instance, keep the util location.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.