[][src]Struct rustpython_vm::obj::objbytearray::PyByteArray

pub struct PyByteArray { /* fields omitted */ }

"bytearray(iterable_of_ints) -> bytearray\n
bytearray(string, encoding[, errors]) -> bytearray\n
bytearray(bytes_or_buffer) -> mutable copy of bytes_or_buffer\n
bytearray(int) -> bytes array of size given by the parameter initialized with null bytes\n
bytearray() -> empty bytes array\n\n
Construct a mutable bytearray object from:\n

Methods

impl PyByteArray[src]

pub fn new(data: Vec<u8>) -> Self[src]

pub fn borrow_value(&self) -> Ref<PyByteInner>[src]

pub fn borrow_value_mut(&self) -> RefMut<PyByteInner>[src]

Trait Implementations

impl Clone for PyByteArray[src]

impl Debug for PyByteArray[src]

impl From<Vec<u8>> for PyByteArray[src]

impl PyClassDef for PyByteArray[src]

impl PyClassImpl for PyByteArray[src]

impl PyValue for PyByteArray[src]

Auto Trait Implementations

impl !RefUnwindSafe for PyByteArray

impl Send for PyByteArray

impl !Sync for PyByteArray

impl Unpin for PyByteArray

impl UnwindSafe for PyByteArray

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoPyObject for T where
    T: PyValue
[src]

impl<T> PyObjectPayload for T where
    T: 'static + PyValue
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,