Struct tskit::ffi::WrappedTskArray [−][src]
pub struct WrappedTskArray<T> { /* fields omitted */ }
Indexable, iterable wrapper around C arrays.
Implementations
impl<T: Copy> WrappedTskArray<T>
[src]
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]
Notable traits for WrappedTskArrayIter<'a, T>
impl<'a, T: Copy> Iterator for WrappedTskArrayIter<'a, T> type Item = T;
Trait Implementations
impl<T: Clone> Clone for WrappedTskArray<T>
[src]
impl<T: Clone> Clone for WrappedTskArray<T>
[src]fn clone(&self) -> WrappedTskArray<T>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<T: Copy> Copy for WrappedTskArray<T>
[src]
impl<T: Copy> Copy for WrappedTskArray<T>
[src]impl Index<i32> for WrappedTskArray<tsk_id_t>
[src]
impl Index<i32> for WrappedTskArray<tsk_id_t>
[src]Auto Trait Implementations
impl<T> RefUnwindSafe for WrappedTskArray<T> where
T: RefUnwindSafe,
impl<T> RefUnwindSafe for WrappedTskArray<T> where
T: RefUnwindSafe,
impl<T> !Send for WrappedTskArray<T>
impl<T> !Send for WrappedTskArray<T>
impl<T> !Sync for WrappedTskArray<T>
impl<T> !Sync for WrappedTskArray<T>
impl<T> Unpin for WrappedTskArray<T>
impl<T> Unpin for WrappedTskArray<T>
impl<T> UnwindSafe for WrappedTskArray<T> where
T: RefUnwindSafe,
impl<T> UnwindSafe for WrappedTskArray<T> where
T: RefUnwindSafe,