Enum rustpython_vm::function::ArgAsciiBuffer
source · pub enum ArgAsciiBuffer {
String(PyStrRef),
Buffer(ArgBytesLike),
}
Variants§
String(PyStrRef)
Buffer(ArgBytesLike)
Implementations§
Trait Implementations§
source§impl Debug for ArgAsciiBuffer
impl Debug for ArgAsciiBuffer
source§impl TryFromObject for ArgAsciiBuffer
impl TryFromObject for ArgAsciiBuffer
source§fn try_from_object(vm: &VirtualMachine, obj: PyObjectRef) -> PyResult<Self>
fn try_from_object(vm: &VirtualMachine, obj: PyObjectRef) -> PyResult<Self>
Attempt to convert a Python object to a value of this type.
Auto Trait Implementations§
impl Freeze for ArgAsciiBuffer
impl !RefUnwindSafe for ArgAsciiBuffer
impl !Send for ArgAsciiBuffer
impl !Sync for ArgAsciiBuffer
impl Unpin for ArgAsciiBuffer
impl !UnwindSafe for ArgAsciiBuffer
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> FromArgOptional for Twhere
T: TryFromObject,
impl<T> FromArgOptional for Twhere
T: TryFromObject,
type Inner = T
fn from_inner(x: T) -> T
source§impl<T> FromArgs for Twhere
T: TryFromObject,
impl<T> FromArgs for Twhere
T: TryFromObject,
source§fn arity() -> RangeInclusive<usize>
fn arity() -> RangeInclusive<usize>
The range of positional arguments permitted by the function signature. Read more
source§fn from_args(
vm: &VirtualMachine,
args: &mut FuncArgs
) -> Result<T, ArgumentError>
fn from_args( vm: &VirtualMachine, args: &mut FuncArgs ) -> Result<T, ArgumentError>
Extracts this item from the next argument(s).