[][src]Struct rustpython_vm::obj::objbytes::PyBytes

pub struct PyBytes { /* fields omitted */ }

"bytes(iterable_of_ints) -> bytes\n
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

Methods

impl PyBytes[src]

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

pub fn get_value(&self) -> &[u8][src]

Trait Implementations

impl Clone for PyBytes[src]

impl Debug for PyBytes[src]

impl Deref for PyBytes[src]

type Target = [u8]

The resulting type after dereferencing.

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

impl PyClassDef for PyBytes[src]

impl PyClassImpl for PyBytes[src]

impl PyValue for PyBytes[src]

Auto Trait Implementations

impl RefUnwindSafe for PyBytes

impl Send for PyBytes

impl Sync for PyBytes

impl Unpin for PyBytes

impl UnwindSafe for PyBytes

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>,