bytes(string, encoding[, errors]) -> bytes\n
bytes(bytes_or_buffer) -> immutable copy of bytes_or_buffer\n
bytes(int) -> bytes object of size given by the parameter initialized with null bytes\n
bytes() -> empty bytes object\n\nConstruct an immutable array of bytes from:\n
impl PyBytes
[src]impl Clone for PyBytes
[src]impl Debug for PyBytes
[src]impl Deref for PyBytes
[src]impl From<Vec<u8>> for PyBytes
[src]impl PyClassDef for PyBytes
[src]impl PyClassImpl for PyBytes
[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 PyBytes
[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 PyBytes
impl Send for PyBytes
impl Sync for PyBytes
impl Unpin for PyBytes
impl UnwindSafe for PyBytes
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