Struct rustpython_vm::function::ArgPrimitiveIndex
source · #[repr(transparent)]pub struct ArgPrimitiveIndex<T> {
pub value: T,
}
Fields§
§value: T
Trait Implementations§
source§impl<T: Debug> Debug for ArgPrimitiveIndex<T>
impl<T: Debug> Debug for ArgPrimitiveIndex<T>
source§impl<T> Deref for ArgPrimitiveIndex<T>
impl<T> Deref for ArgPrimitiveIndex<T>
source§impl<T> TryFromObject for ArgPrimitiveIndex<T>where
T: PrimInt + for<'a> TryFrom<&'a BigInt>,
impl<T> TryFromObject for ArgPrimitiveIndex<T>where T: PrimInt + for<'a> TryFrom<&'a BigInt>,
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<T> RefUnwindSafe for ArgPrimitiveIndex<T>where T: RefUnwindSafe,
impl<T> Send for ArgPrimitiveIndex<T>where T: Send,
impl<T> Sync for ArgPrimitiveIndex<T>where T: Sync,
impl<T> Unpin for ArgPrimitiveIndex<T>where T: Unpin,
impl<T> UnwindSafe for ArgPrimitiveIndex<T>where T: UnwindSafe,
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
§impl<T, U> ExactFrom<T> for Uwhere
U: TryFrom<T>,
impl<T, U> ExactFrom<T> for Uwhere U: TryFrom<T>,
fn exact_from(value: T) -> U
§impl<T, U> ExactInto<U> for Twhere
U: ExactFrom<T>,
impl<T, U> ExactInto<U> for Twhere U: ExactFrom<T>,
fn exact_into(self) -> U
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).