Make CString.iter() public
This commit is contained in:
parent
03ef71e262
commit
f744cf157e
1 changed files with 1 additions and 1 deletions
|
@ -104,7 +104,7 @@ impl CString {
|
|||
}
|
||||
|
||||
/// Return a CString iterator.
|
||||
fn iter<'a>(&'a self) -> CStringIterator<'a> {
|
||||
pub fn iter<'a>(&'a self) -> CStringIterator<'a> {
|
||||
CStringIterator {
|
||||
ptr: self.buf,
|
||||
lifetime: unsafe { cast::transmute(self.buf) },
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue