struct IntTypeCastCallbacksImpl {
pending: HashMap<String, IntKind>,
}Expand description
Actual implementation of the IntTypeCastCallbacks callbacks.
Fields§
§pending: HashMap<String, IntKind>Map of macros that have been redefined for a specific type, and still need to have their type overridden.
Implementations§
Source§impl IntTypeCastCallbacksImpl
impl IntTypeCastCallbacksImpl
Sourcefn int_macro(&mut self, name: &str) -> Option<IntKind>
fn int_macro(&mut self, name: &str) -> Option<IntKind>
Implementation of parser callback to specify an integer macro type, applying any pending override from a modification.
Sourcefn modify_macro(&mut self, name: &str, tokens: &mut Vec<Token>)
fn modify_macro(&mut self, name: &str, tokens: &mut Vec<Token>)
Implementation of parser callback to modify a macro, replacing C casts with the resulting value if applicable.
Trait Implementations§
Source§impl Debug for IntTypeCastCallbacksImpl
impl Debug for IntTypeCastCallbacksImpl
Source§impl Drop for IntTypeCastCallbacksImpl
impl Drop for IntTypeCastCallbacksImpl
Auto Trait Implementations§
impl Freeze for IntTypeCastCallbacksImpl
impl RefUnwindSafe for IntTypeCastCallbacksImpl
impl Send for IntTypeCastCallbacksImpl
impl Sync for IntTypeCastCallbacksImpl
impl Unpin for IntTypeCastCallbacksImpl
impl UnsafeUnpin for IntTypeCastCallbacksImpl
impl UnwindSafe for IntTypeCastCallbacksImpl
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