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
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]impl Clone for PyByteArray
[src]fn clone(&self) -> PyByteArray
[src]fn clone_from(&mut self, source: &Self)
1.0.0[src]impl Debug for PyByteArray
[src]impl From<Vec<u8>> for PyByteArray
[src]fn from(elements: Vec<u8>) -> PyByteArray
[src]impl PyClassDef for PyByteArray
[src]impl PyClassImpl for PyByteArray
[src]const TP_FLAGS: PyTpFlags
[src]fn impl_extend_class(ctx: &PyContext, class: &PyClassRef)
[src]fn extend_class(ctx: &PyContext, class: &PyClassRef)
[src]fn make_class(ctx: &PyContext) -> PyClassRef
[src]fn make_class_with_base(ctx: &PyContext, base: PyClassRef) -> PyClassRef
[src]impl PyValue for PyByteArray
[src]fn class(vm: &VirtualMachine) -> PyClassRef
[src]const HAVE_DICT: bool
[src]fn into_ref(self, vm: &VirtualMachine) -> PyRef<Self>
[src]fn into_ref_with_type(
self,
vm: &VirtualMachine,
cls: PyClassRef
) -> PyResult<PyRef<Self>>
[src]fn into_ref_with_type_unchecked(
self,
cls: PyClassRef,
dict: Option<PyDictRef>
) -> PyRef<Self>
[src]impl !RefUnwindSafe for PyByteArray
impl Send for PyByteArray
impl !Sync for PyByteArray
impl Unpin for PyByteArray
impl UnwindSafe for PyByteArray
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]fn borrow_mut(&mut self) -> &mut T
[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]fn into_pyobject(
Self,
&VirtualMachine
) -> Result<Rc<PyObject<dyn PyObjectPayload + 'static>>, PyRef<PyBaseException>>
[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.
fn to_owned(&self) -> T
[src]fn clone_into(&self, target: &mut T)
[src]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.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]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.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V