MutableBuffer
- class MutableBuffer
Description
A mutable view into a native random-access container. Implements MutableSequence protocol.
Inheritance:
Members defined in
MutableBuffer(8 members)Remove an item at the specified index.
Append an item to the end.
Clear all contents.
Append items to the end.
Insert a new item at the specified index.
Remove and return existing item at specified index.
Remove an item at the specified index.
Members inherited from
BufferView(11 members)Whether this container is not empty
Get the value at
index.Returns the number of
valueoccurrences in this containerWhether this container is empty
Returns the index of
valuein this container.Methods
- __delitem__(arg: int, /) None
Remove an item at the specified index.
Warning
May invalidate existing references to contained items.
- __delitem__(arg: slice, /) None
Remove items at the specified slice indices.
Warning
May invalidate existing references to contained items.
- __setitem__(arg0: int, arg1: syside.T, /) None
- __setitem__(arg0: slice, arg1: Iterable[syside.T], /) None
- append(arg: syside.T, /) None
Append an item to the end.
Warning
May invalidate existing references to contained items.
- extend(arg: Iterable[syside.T], /) None
Append items to the end.
Warning
May invalidate existing references to contained items.
- insert(arg0: int, arg1: syside.T, /) None
Insert a new item at the specified index.
Warning
May invalidate existing references to contained items.
- pop(arg: int = -1) syside.T
Remove and return existing item at specified index.
Warning
May invalidate existing references to contained items.
- remove(arg: syside.T, /) None
Remove an item at the specified index.
Warning
May invalidate existing references to contained items.
Used by