pub struct Func<T>(/* private fields */);Expand description
A function value, this can be called with a set of positional arguments to produce a value. This is most commonly used as a constructor for tests sets.
Implementations§
Source§impl<T> Func<T>
impl<T> Func<T>
Source§impl<T> Func<T>
impl<T> Func<T>
Sourcepub fn expect_no_args(
id: &str,
_ctx: &Context<T>,
args: &[Value<T>],
) -> Result<(), Error>
pub fn expect_no_args( id: &str, _ctx: &Context<T>, args: &[Value<T>], ) -> Result<(), Error>
Ensure there are no args.
Trait Implementations§
Source§impl<T> TryFromValue<T> for Func<T>
impl<T> TryFromValue<T> for Func<T>
Auto Trait Implementations§
impl<T> Freeze for Func<T>
impl<T> !RefUnwindSafe for Func<T>
impl<T> !Send for Func<T>
impl<T> !Sync for Func<T>
impl<T> Unpin for Func<T>
impl<T> !UnwindSafe for Func<T>
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