Merge pull request #21 from mneumann/pub_as_ptr

Make ImStr#as_ptr public
This commit is contained in:
Joonas Javanainen 2016-05-06 15:46:50 +03:00
commit ac5d8cfcd1

View File

@ -86,7 +86,7 @@ impl<'a> ImStr<'a> {
bytes: Cow::Borrowed(bytes)
}
}
fn as_ptr(&self) -> *const c_char { self.bytes.as_ptr() as *const c_char }
pub fn as_ptr(&self) -> *const c_char { self.bytes.as_ptr() as *const c_char }
}
impl<'a> From<&'a str> for ImStr<'a> {