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>
impl<T> TryFromObject for ArgPrimitiveIndex<T>
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> Freeze for ArgPrimitiveIndex<T>where
T: Freeze,
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
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).