pub struct Macros(/* private fields */);
Expand description
Currently defined macros.
Implementations§
Source§impl Macros
impl Macros
Sourcepub fn get(&self, name: &CStr) -> Option<&CStr>
pub fn get(&self, name: &CStr) -> Option<&CStr>
Returns the value associated with the given macro name, if any.
Single-character macros like i
or {i}
can be looked up in either
form (both names i
and {i}
return the same result).
Sourcepub fn to_hash_map(&self) -> HashMap<CString, CString>
pub fn to_hash_map(&self) -> HashMap<CString, CString>
Returns a new hash map with all defined macros.
Trait Implementations§
impl Eq for Macros
impl StructuralPartialEq for Macros
Auto Trait Implementations§
impl Freeze for Macros
impl RefUnwindSafe for Macros
impl Send for Macros
impl Sync for Macros
impl Unpin for Macros
impl UnwindSafe for Macros
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more