pub struct MethodInput<'a> {
pub name: &'a str,
pub fields: &'a [&'a str],
pub signature_types: &'a [&'a str],
pub local_types: &'a [&'a str],
pub domains: &'a [&'a str],
}Expand description
Input data for building a MethodProfile in tests.
§Examples
ⓘ
use whitaker_common::test_support::decomposition::{MethodInput, profile};
let profile = profile(MethodInput {
name: "parse_tokens",
fields: &["grammar"],
signature_types: &[],
local_types: &[],
domains: &[],
});
assert_eq!(profile.name(), "parse_tokens");Fields§
§name: &'a str§fields: &'a [&'a str]§signature_types: &'a [&'a str]§local_types: &'a [&'a str]§domains: &'a [&'a str]Auto Trait Implementations§
impl<'a> Freeze for MethodInput<'a>
impl<'a> RefUnwindSafe for MethodInput<'a>
impl<'a> Send for MethodInput<'a>
impl<'a> Sync for MethodInput<'a>
impl<'a> Unpin for MethodInput<'a>
impl<'a> UnsafeUnpin for MethodInput<'a>
impl<'a> UnwindSafe for MethodInput<'a>
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