[][src]Struct rustpython_vm::obj::objbyteinner::PyByteInner

pub struct PyByteInner {
    pub elements: Vec<u8>,
}

Fields

elements: Vec<u8>

Methods

impl PyByteInner[src]

pub fn repr(&self) -> PyResult<String>[src]

pub fn len(&self) -> usize[src]

pub fn eq(&self, other: PyObjectRef, vm: &VirtualMachine) -> PyComparisonValue[src]

pub fn ge(&self, other: PyObjectRef, vm: &VirtualMachine) -> PyComparisonValue[src]

pub fn le(&self, other: PyObjectRef, vm: &VirtualMachine) -> PyComparisonValue[src]

pub fn gt(&self, other: PyObjectRef, vm: &VirtualMachine) -> PyComparisonValue[src]

pub fn lt(&self, other: PyObjectRef, vm: &VirtualMachine) -> PyComparisonValue[src]

pub fn hash(&self) -> i64[src]

pub fn add(&self, other: PyByteInner) -> Vec<u8>[src]

pub fn contains(
    &self,
    needle: Either<PyByteInner, PyIntRef>,
    vm: &VirtualMachine
) -> PyResult<bool>
[src]

pub fn getitem(
    &self,
    needle: Either<i32, PySliceRef>,
    vm: &VirtualMachine
) -> PyResult
[src]

pub fn setitem(
    &mut self,
    needle: Either<i32, PySliceRef>,
    object: PyObjectRef,
    vm: &VirtualMachine
) -> PyResult
[src]

pub fn delitem(
    &mut self,
    needle: Either<i32, PySliceRef>,
    vm: &VirtualMachine
) -> PyResult<()>
[src]

pub fn isalnum(&self) -> bool[src]

pub fn isalpha(&self) -> bool[src]

pub fn isascii(&self) -> bool[src]

pub fn isdigit(&self) -> bool[src]

pub fn islower(&self) -> bool[src]

pub fn isspace(&self) -> bool[src]

pub fn isupper(&self) -> bool[src]

pub fn istitle(&self) -> bool[src]

pub fn lower(&self) -> Vec<u8>[src]

pub fn upper(&self) -> Vec<u8>[src]

pub fn capitalize(&self) -> Vec<u8>[src]

pub fn swapcase(&self) -> Vec<u8>[src]

pub fn hex(&self) -> String[src]

pub fn fromhex(string: &str, vm: &VirtualMachine) -> PyResult<Vec<u8>>[src]

pub fn center(
    &self,
    options: ByteInnerPaddingOptions,
    vm: &VirtualMachine
) -> PyResult<Vec<u8>>
[src]

pub fn ljust(
    &self,
    options: ByteInnerPaddingOptions,
    vm: &VirtualMachine
) -> PyResult<Vec<u8>>
[src]

pub fn rjust(
    &self,
    options: ByteInnerPaddingOptions,
    vm: &VirtualMachine
) -> PyResult<Vec<u8>>
[src]

pub fn count(
    &self,
    options: ByteInnerFindOptions,
    vm: &VirtualMachine
) -> PyResult<usize>
[src]

pub fn join(
    &self,
    iter: PyIterable<PyByteInner>,
    vm: &VirtualMachine
) -> PyResult<Vec<u8>>
[src]

pub fn startsendswith(
    &self,
    arg: Either<PyByteInner, PyTupleRef>,
    start: OptionalArg<PyObjectRef>,
    end: OptionalArg<PyObjectRef>,
    endswith: bool,
    vm: &VirtualMachine
) -> PyResult<bool>
[src]

pub fn find(
    &self,
    options: ByteInnerFindOptions,
    reverse: bool,
    vm: &VirtualMachine
) -> PyResult<isize>
[src]

pub fn maketrans(
    from: PyByteInner,
    to: PyByteInner,
    vm: &VirtualMachine
) -> PyResult
[src]

pub fn translate(
    &self,
    options: ByteInnerTranslateOptions,
    vm: &VirtualMachine
) -> PyResult<Vec<u8>>
[src]

pub fn strip(
    &self,
    chars: OptionalArg<PyByteInner>,
    position: ByteInnerPosition
) -> PyResult<Vec<u8>>
[src]

pub fn split(
    &self,
    options: ByteInnerSplitOptions,
    reverse: bool
) -> PyResult<Vec<&[u8]>>
[src]

pub fn partition(
    &self,
    sep: &PyByteInner,
    reverse: bool
) -> PyResult<(Vec<u8>, Vec<u8>)>
[src]

pub fn expandtabs(&self, options: ByteInnerExpandtabsOptions) -> Vec<u8>[src]

pub fn splitlines(&self, options: ByteInnerSplitlinesOptions) -> Vec<&[u8]>[src]

pub fn zfill(&self, width: PyIntRef) -> Vec<u8>[src]

pub fn replace(
    &self,
    old: PyByteInner,
    new: PyByteInner,
    count: OptionalArg<PyIntRef>
) -> PyResult<Vec<u8>>
[src]

pub fn title(&self) -> Vec<u8>[src]

pub fn repeat(&self, n: isize) -> Vec<u8>[src]

pub fn irepeat(&mut self, n: isize)[src]

Trait Implementations

impl Clone for PyByteInner[src]

impl Debug for PyByteInner[src]

impl Default for PyByteInner[src]

impl TryFromObject for PyByteInner[src]

Auto Trait Implementations

impl RefUnwindSafe for PyByteInner

impl Send for PyByteInner

impl Sync for PyByteInner

impl Unpin for PyByteInner

impl UnwindSafe for PyByteInner

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> FromArgs for T where
    T: TryFromObject
[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[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>,