mirror of
https://github.com/eliasstepanik/imgui-rs.git
synced 2026-01-24 03:48:30 +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)
|
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> {
|
impl<'a> From<&'a str> for ImStr<'a> {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user