pub struct DynSequence<T: ?Sized> { /* private fields */ }

Implementations§

Inserts a new value into the DynSequence at the given index (see Vec::insert) by moving the value behind the pointer and taking ownership.

Safety

Behavior is undefined if any of the following conditions are violated:

  • src must be valid for reads.
  • src must be properly aligned.
  • src must point to a properly initialized value of type T.
  • src must not be used or dropped anymore (use std::mem::forget)

Adds a new value at the end of the DynSequence (see Vec::push) by moving the value behind the pointer and taking ownership.

Safety

Behavior is undefined if any of the following conditions are violated:

  • src must be valid for reads.
  • src must be properly aligned.
  • src must point to a properly initialized value of type T.
  • src must not be used or dropped anymore (use std::mem::forget)

Trait Implementations§

Executes the destructor for this type. Read more
The returned type after indexing.
Performs the indexing (container[index]) operation. Read more
Performs the mutable indexing (container[index]) operation. Read more
The type of the elements being iterated over.
Which kind of iterator are we turning this into?
Creates an iterator from a value. Read more
The type of the elements being iterated over.
Which kind of iterator are we turning this into?
Creates an iterator from a value. 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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.