[−][src]Struct rustpython_vm::obj::objbyteinner::PyByteInner
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]
&self,
needle: Either<PyByteInner, PyIntRef>,
vm: &VirtualMachine
) -> PyResult<bool>
pub fn getitem(
&self,
needle: Either<i32, PySliceRef>,
vm: &VirtualMachine
) -> PyResult
[src]
&self,
needle: Either<i32, PySliceRef>,
vm: &VirtualMachine
) -> PyResult
pub fn setitem(
&mut self,
needle: Either<i32, PySliceRef>,
object: PyObjectRef,
vm: &VirtualMachine
) -> PyResult
[src]
&mut self,
needle: Either<i32, PySliceRef>,
object: PyObjectRef,
vm: &VirtualMachine
) -> PyResult
pub fn delitem(
&mut self,
needle: Either<i32, PySliceRef>,
vm: &VirtualMachine
) -> PyResult<()>
[src]
&mut self,
needle: Either<i32, PySliceRef>,
vm: &VirtualMachine
) -> PyResult<()>
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]
&self,
options: ByteInnerPaddingOptions,
vm: &VirtualMachine
) -> PyResult<Vec<u8>>
pub fn ljust(
&self,
options: ByteInnerPaddingOptions,
vm: &VirtualMachine
) -> PyResult<Vec<u8>>
[src]
&self,
options: ByteInnerPaddingOptions,
vm: &VirtualMachine
) -> PyResult<Vec<u8>>
pub fn rjust(
&self,
options: ByteInnerPaddingOptions,
vm: &VirtualMachine
) -> PyResult<Vec<u8>>
[src]
&self,
options: ByteInnerPaddingOptions,
vm: &VirtualMachine
) -> PyResult<Vec<u8>>
pub fn count(
&self,
options: ByteInnerFindOptions,
vm: &VirtualMachine
) -> PyResult<usize>
[src]
&self,
options: ByteInnerFindOptions,
vm: &VirtualMachine
) -> PyResult<usize>
pub fn join(
&self,
iter: PyIterable<PyByteInner>,
vm: &VirtualMachine
) -> PyResult<Vec<u8>>
[src]
&self,
iter: PyIterable<PyByteInner>,
vm: &VirtualMachine
) -> PyResult<Vec<u8>>
pub fn startsendswith(
&self,
arg: Either<PyByteInner, PyTupleRef>,
start: OptionalArg<PyObjectRef>,
end: OptionalArg<PyObjectRef>,
endswith: bool,
vm: &VirtualMachine
) -> PyResult<bool>
[src]
&self,
arg: Either<PyByteInner, PyTupleRef>,
start: OptionalArg<PyObjectRef>,
end: OptionalArg<PyObjectRef>,
endswith: bool,
vm: &VirtualMachine
) -> PyResult<bool>
pub fn find(
&self,
options: ByteInnerFindOptions,
reverse: bool,
vm: &VirtualMachine
) -> PyResult<isize>
[src]
&self,
options: ByteInnerFindOptions,
reverse: bool,
vm: &VirtualMachine
) -> PyResult<isize>
pub fn maketrans(
from: PyByteInner,
to: PyByteInner,
vm: &VirtualMachine
) -> PyResult
[src]
from: PyByteInner,
to: PyByteInner,
vm: &VirtualMachine
) -> PyResult
pub fn translate(
&self,
options: ByteInnerTranslateOptions,
vm: &VirtualMachine
) -> PyResult<Vec<u8>>
[src]
&self,
options: ByteInnerTranslateOptions,
vm: &VirtualMachine
) -> PyResult<Vec<u8>>
pub fn strip(
&self,
chars: OptionalArg<PyByteInner>,
position: ByteInnerPosition
) -> PyResult<Vec<u8>>
[src]
&self,
chars: OptionalArg<PyByteInner>,
position: ByteInnerPosition
) -> PyResult<Vec<u8>>
pub fn split(
&self,
options: ByteInnerSplitOptions,
reverse: bool
) -> PyResult<Vec<&[u8]>>
[src]
&self,
options: ByteInnerSplitOptions,
reverse: bool
) -> PyResult<Vec<&[u8]>>
pub fn partition(
&self,
sep: &PyByteInner,
reverse: bool
) -> PyResult<(Vec<u8>, Vec<u8>)>
[src]
&self,
sep: &PyByteInner,
reverse: bool
) -> PyResult<(Vec<u8>, Vec<u8>)>
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]
&self,
old: PyByteInner,
new: PyByteInner,
count: OptionalArg<PyIntRef>
) -> PyResult<Vec<u8>>
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]
fn clone(&self) -> PyByteInner
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for PyByteInner
[src]
impl Default for PyByteInner
[src]
fn default() -> PyByteInner
[src]
impl TryFromObject for PyByteInner
[src]
fn try_from_object(vm: &VirtualMachine, obj: PyObjectRef) -> PyResult<Self>
[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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> FromArgs for T where
T: TryFromObject,
[src]
T: TryFromObject,
fn arity() -> RangeInclusive<usize>
[src]
fn from_args(&VirtualMachine, &mut PyFuncArgs) -> Result<T, ArgumentError>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
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]
U: Into<T>,
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]
U: TryFrom<T>,
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>,
V: MultiLane<T>,