pub struct InjectionConfig<'a, I, F>where
I: IntoIterator<Item = Instruction>,
I::IntoIter: ExactSizeIterator + Clone,
F: Fn(&FunctionType) -> I,{
pub stack_limit: u32,
pub injection_fn: F,
pub stack_height_export_name: Option<&'a str>,
}
Expand description
Represents the injection configuration. See inject_with_config
for more details.
Fields§
§stack_limit: u32
§injection_fn: F
§stack_height_export_name: Option<&'a str>
Auto Trait Implementations§
impl<'a, I, F> Freeze for InjectionConfig<'a, I, F>
impl<'a, I, F> RefUnwindSafe for InjectionConfig<'a, I, F>
impl<'a, I, F> Send for InjectionConfig<'a, I, F>
impl<'a, I, F> Sync for InjectionConfig<'a, I, F>
impl<'a, I, F> Unpin for InjectionConfig<'a, I, F>
impl<'a, I, F> UnwindSafe for InjectionConfig<'a, I, F>
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