Struct tskit::ffi::WrappedTskArray[][src]

pub struct WrappedTskArray<T> { /* fields omitted */ }

Indexable, iterable wrapper around C arrays.

Implementations

impl<T: Copy> WrappedTskArray<T>[src]

pub fn len(&self) -> tsk_size_t[src]

pub fn is_empty(&self) -> bool[src]

pub unsafe fn as_ptr(&self) -> *const T[src]

Safety

This function returns the raw C pointer, and is thus unsafe.

pub fn iter(&self) -> WrappedTskArrayIter<'_, T>

Notable traits for WrappedTskArrayIter<'a, T>

impl<'a, T: Copy> Iterator for WrappedTskArrayIter<'a, T> type Item = T;
[src]

Trait Implementations

impl<T: Clone> Clone for WrappedTskArray<T>[src]

impl<T: Copy> Copy for WrappedTskArray<T>[src]

impl Index<i32> for WrappedTskArray<tsk_id_t>[src]

type Output = tsk_id_t

The returned type after indexing.

impl Index<i32> for WrappedTskArray<f64>[src]

type Output = f64

The returned type after indexing.

Auto Trait Implementations

impl<T> RefUnwindSafe for WrappedTskArray<T> where
    T: RefUnwindSafe

impl<T> !Send for WrappedTskArray<T>

impl<T> !Sync for WrappedTskArray<T>

impl<T> Unpin for WrappedTskArray<T>

impl<T> UnwindSafe for WrappedTskArray<T> where
    T: RefUnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.