mirror of
https://github.com/danog/ext-php-rs.git
synced 2024-11-26 20:15:22 +01:00
Add helper for class name (#255)
This commit is contained in:
parent
3e378f8cdf
commit
4e8bec7995
@ -79,6 +79,10 @@ impl ClassEntry {
|
||||
Self::try_find(name.as_str().ok()?)
|
||||
}
|
||||
}
|
||||
|
||||
pub fn name(&self) -> Option<&str> {
|
||||
unsafe { self.name.as_ref().and_then(|s| s.as_str().ok()) }
|
||||
}
|
||||
}
|
||||
|
||||
impl PartialEq for ClassEntry {
|
||||
|
Loading…
Reference in New Issue
Block a user