Struct space::CandidatesVec[][src]

pub struct CandidatesVec { /* fields omitted */ }

Implementations

Clears the struct without freeing the memory.

Gets the number of items in the candidate pool.

Checks if any candidates are present.

Pushes a new neighbor to the candidate list.

Returns if it was added.

Pop the worst candidate list.

This removes it from the candidates.

Peek at the best candidate.

This does not remove the candidate.

Sets the cap to cap. Resizes if necessary, removing the bottom elements.

Fill a slice with the best elements and return the part of the slice written.

Iterator from best to worst.

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

Deserialize this value from the given Serde deserializer. Read more

Serialize this value into the given Serde serializer. Read more

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

Numeric cast from self to T.

Performs the conversion.

Numeric cast from T to Self.

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.