[−][src]Struct rustypy::pytypes::pytuple::PyTuple
An analog of a Python tuple, will accept an undefined number of other supported types.
Read the module docs for more information.
Methods
impl<'a> PyTuple
[src]
pub unsafe fn from_ptr(ptr: *mut PyTuple) -> PyTuple
[src]
Get a PyTuple from a previously boxed raw pointer.
pub fn len(&self) -> usize
[src]
Returns the length of the tuple.
pub fn into_raw(self) -> *mut PyTuple
[src]
Returns self as raw pointer. Use this method when returning a PyTuple to Python.
Methods from Deref<Target = PyArg>
Trait Implementations
impl AsRef<PyTuple> for PyArg
[src]
impl Clone for PyTuple
[src]
impl Debug for PyTuple
[src]
impl Deref for PyTuple
[src]
impl From<PyArg> for PyTuple
[src]
impl From<PyTuple> for PyArg
[src]
impl<'a> IntoIterator for &'a PyTuple
[src]
type Item = &'a PyArg
The type of the elements being iterated over.
type IntoIter = IntoIter<&'a PyArg>
Which kind of iterator are we turning this into?
fn into_iter(self) -> Self::IntoIter
[src]
impl PartialEq<PyTuple> for PyTuple
[src]
impl StructuralPartialEq for PyTuple
[src]
Auto Trait Implementations
impl RefUnwindSafe for PyTuple
impl !Send for PyTuple
impl !Sync for PyTuple
impl Unpin for PyTuple
impl UnwindSafe for PyTuple
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, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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>,