generic-std 0.1.0

Experimental HKT framework and generic traits for the standard library
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! A dynamically-sized view into a contiguous sequence, [T].

use crate::plug::PlugLifetime;
use std::marker::PhantomData;
use std::slice::Iter;

/// HTK `&'a [T]` iterator with a lifetime slot
pub struct TypedH1Iter<T>(PhantomData<T>);

impl<'a, T> PlugLifetime<'a> for TypedH1Iter<T>
where
    T: 'a,
{
    type T = Iter<'a, T>;
}