Trait traitsequence::interface::EditableSequence
source · [−]pub trait EditableSequence<'a, Item: 'a, Subsequence: Sequence<'a, Item, Subsequence> + ?Sized>: Sequence<'a, Item, Subsequence> + Extend<Item> + IntoIterator<Item = Item> + FromIterator<Item> {
fn extend_into<ExtensionItem: Into<Item>, ExtensionSource: IntoIterator<Item = ExtensionItem>>(
&mut self,
extension: ExtensionSource
) { ... }
}
Expand description
A type behaving like a sequence over the type Item
that can be edited.
This sequences items can not necessarily be mutated themselves, but they can be rearranged or new items can be appended etc.
For a sequence where the items themselves can be mutated, see SequenceMut.
Provided methods
fn extend_into<ExtensionItem: Into<Item>, ExtensionSource: IntoIterator<Item = ExtensionItem>>(
&mut self,
extension: ExtensionSource
)
fn extend_into<ExtensionItem: Into<Item>, ExtensionSource: IntoIterator<Item = ExtensionItem>>(
&mut self,
extension: ExtensionSource
)
Extend this sequence from a sequence of compatible items.