Struct udf::mock::MockArgList
source · pub struct MockArgList { /* private fields */ }
Expand description
Structure to create a &mut ArgList
for testing
Implementations§
source§impl MockArgList
impl MockArgList
pub fn new() -> Self
pub fn push_arg(&mut self, arg: MockArg)
sourcepub fn as_init(&mut self) -> &ArgList<'_, Init>
pub fn as_init(&mut self) -> &ArgList<'_, Init>
Create a &ArgList<Init>
for testing with the init()
function call
sourcepub fn as_process(&mut self) -> &ArgList<'_, Process>
pub fn as_process(&mut self) -> &ArgList<'_, Process>
Create a &ArgList<Process>
for testing with the process()
function call
Trait Implementations§
source§impl Debug for MockArgList
impl Debug for MockArgList
Auto Trait Implementations§
impl !Freeze for MockArgList
impl !RefUnwindSafe for MockArgList
impl !Send for MockArgList
impl !Sync for MockArgList
impl !Unpin for MockArgList
impl UnwindSafe for MockArgList
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