[][src]Struct var_byte_str::Gaps

pub struct Gaps<'a> { /* fields omitted */ }

An iterator that return gap of each character as i64 offset. The first return value can be cast to char. The subsequence value need to be added to first value in order to obtain an i64 that can be cast to char.

This iterator doesn't check whether the return i64 is safe to be cast to u32 or char. It assume that the gap is encoded from valid Unicode code point.

Trait Implementations

impl<'a> ExactSizeIterator for Gaps<'a>[src]

impl<'a> FusedIterator for Gaps<'a>[src]

impl<'a> Iterator for Gaps<'a>[src]

type Item = i64

The type of the elements being iterated over.

Auto Trait Implementations

impl<'a> RefUnwindSafe for Gaps<'a>

impl<'a> Send for Gaps<'a>

impl<'a> Sync for Gaps<'a>

impl<'a> Unpin for Gaps<'a>

impl<'a> UnwindSafe for Gaps<'a>

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<I> IntoIterator for I where
    I: Iterator
[src]

type Item = <I as Iterator>::Item

The type of the elements being iterated over.

type IntoIter = I

Which kind of iterator are we turning this into?

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.