Struct std::c_str::CStringIterator

pub struct CStringIterator<'self> {
    priv ptr: *c_char,
    priv lifetime: &'self c_char,
}

External iterator for a CString's bytes.

Use with the std::iterator module.

Trait Implementations

impl<'self> Iterator<c_char> for CStringIterator<'self>

fn next(&mut self) -> Option<c_char>

Advance the iterator and return the next value. Return None when the end is reached.