mirror of
https://github.com/eliasstepanik/imgui-rs.git
synced 2026-01-12 05:58:35 +00:00
Merge pull request #21 from mneumann/pub_as_ptr
Make ImStr#as_ptr public
This commit is contained in:
commit
ac5d8cfcd1
@ -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> {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user