Struct cl_generic_vec::iter::RawCursor[][src]

pub struct RawCursor<'a, S: ?Sized + Storage> { /* fields omitted */ }
Expand description

This struct is created by GenericVec::raw_cursor. See its documentation for more.

Implementations

Skip all the remaining elements, and ensure that the GenericVec is valid

The number of remaining elements in range of this RawCursor

The RawCursor is empty when there are 0 remaining elements

Returns true if the RawCursor is empty

Returns true if the RawCursor is has no unfilled slots and the RawCursor is empty

Returns true if there is an unfilled slot at the front of the RawCursor

Returns true if there is an unfilled slot at the back of the RawCursor

Returns the number of unfilled slots if the RawCursor is empty if the RawCursor is not empty, the behavior is unspecified

Returns the number of unfilled slots at the front of the RawCursor

Returns the number of unfilled slots at the back of the RawCursor

Returns a reference to the next element of the RawCursor.

Note: this does not advance the RawCursor or change the number of unfilled slots

Safety

The RawCursor must not be empty

Returns a mutable reference to the next element of the RawCursor.

Note: this does not advance the RawCursor or change the number of unfilled slots

Safety

The RawCursor must not be empty

Returns a reference to the last element of the RawCursor.

Note: this does not advance the RawCursor or change the number of unfilled slots

Safety

The RawCursor must not be empty

Returns a mutable reference to the last element of the RawCursor.

Note: this does not advance the RawCursor or change the number of unfilled slots

Safety

The RawCursor must not be empty

Removes the next element of the RawCursor and removes it from the underlying GenericVec

Advances the RawCursor by 1 element

Creates 1 unfilled slot at the front of the RawCursor.

Safety

The RawCursor must not be empty

Removes the last element of the Cursor and removes it from the underlying GenericVec

Advances the RawCursor by 1 element

Creates 1 unfilled slot at the back of the RawCursor.

Safety

The RawCursor must not be empty

Drops the next element of the RawCursor and removes them it the underlying GenericVec

Advances the RawCursor by 1 element

Creates 1 unfilled slot at the front of the RawCursor.

Safety

The RawCursor must not be empty

Drops the last element of the RawCursor and removes them it the underlying GenericVec

Advances the RawCursor by 1 element

Creates 1 unfilled slot at the back of the RawCursor.

Safety

The RawCursor must not be empty

Drops the next n elements of the RawCursor and removes them from the underlying GenericVec

Advances the RawCursor by n elements

Creates n unfilled slots at the front of the RawCursor.

Safety

The RawCursor’s length must be at least equal to n

Drops the last n elements of the RawCursor and removes them from the underlying GenericVec

Advances the RawCursor by n elements

Creates n unfilled slots at the back of the RawCursor.

Safety

The RawCursor’s length must be at least equal to n

Writes value into the unfilled slot at the front of the RawCursor if there is an unfilled slot at the front of the RawCursor

Fills in 1 unfilled slot at the front of the RawCursor

Safety

There must be at least 1 unfilled slot at the front of the RawCursor

Writes value into the unfilled slot at the back of the RawCursor if there is an unfilled slot at the back of the RawCursor

Fills in 1 unfilled slot at the back of the RawCursor

Safety

There must be at least 1 unfilled slot at the back of the RawCursor

Moves slice into the unfilled slots at the front of the RawCursor if there are slice.len() unfilled slots at the front of the RawCursor

Fills in slice.len() unfilled slots at the front of the RawCursor

Safety
  • There must be at least slice.len() unfilled slots at the front of the RawCursor
  • You must not drop any of the values in slice

Moves slice into the unfilled slots at the back of the RawCursor if there are slice.len() unfilled slots at the back of the RawCursor

Fills in slice.len() unfilled slots at the back of the RawCursor

Safety
  • There must be at least slice.len() unfilled slots at the back of the RawCursor
  • You must not drop any of the values in slice

Skips the next element of the RawCursor and keeps it in the underlying GenericVec

Advances the RawCursor by 1 element

Does not change the number of unfilled slots.

Safety

The RawCursor must not be empty

Skips the last element of the RawCursor and keeps it in the underlying GenericVec

Advances the RawCursor by 1 element

Does not change the number of unfilled slots.

Safety

The RawCursor must not be empty

Skips the next n elements of the RawCursor and keeps them in the underlying GenericVec

Advances the RawCursor by n elements

Does not change the number of unfilled slots.

Safety

The RawCursor’s length must be at least equal to n

Skips the last n elements of the RawCursor and keeps them in the underlying GenericVec

Advances the RawCursor by n elements

Does not change the number of unfilled slots.

Safety

The RawCursor’s length must be at least equal to n

Reserve at least space unfilled slots in the RawCursor

Panics
  • Panics if the RawCursor is not empty
  • May panic if the underlying GenericVec cannot reserve more space

Trait Implementations

Executes the destructor for this type. 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

Performs the conversion.

Performs the conversion.

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.