pub struct WastTest {
pub path: PathBuf,
pub contents: String,
pub config: TestConfig,
}Expand description
A *.wast test with its path, contents, and configuration.
Fields§
§path: PathBuf§contents: String§config: TestConfigImplementations§
Source§impl WastTest
impl WastTest
Sourcepub fn test_uses_gc_types(&self) -> bool
pub fn test_uses_gc_types(&self) -> bool
Returns whether this test exercises the GC types and might want to use multiple different garbage collectors.
Sourcepub fn spec_proposal(&self) -> Option<&str>
pub fn spec_proposal(&self) -> Option<&str>
Returns the optional spec proposal that this test is associated with.
Sourcepub fn should_fail(&self, config: &WastConfig) -> bool
pub fn should_fail(&self, config: &WastConfig) -> bool
Returns whether this test should fail under the specified extra configuration.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for WastTest
impl RefUnwindSafe for WastTest
impl Send for WastTest
impl Sync for WastTest
impl Unpin for WastTest
impl UnwindSafe for WastTest
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more