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]
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]
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 Index<i32> for WrappedTskArray<tsk_id_t>
[src]
type Output = tsk_id_t
The returned type after indexing.
fn index(&self, index: tsk_id_t) -> &Self::Output
[src]
impl Index<i32> for WrappedTskArray<f64>
[src]
Auto Trait Implementations
impl<T> RefUnwindSafe for WrappedTskArray<T> where
T: RefUnwindSafe,
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,
T: RefUnwindSafe,
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,
pub 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.
pub fn to_owned(&self) -> T
[src]
pub 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.
pub 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>,