pub struct GpuTestReport {
pub backend: String,
pub capabilities: Option<DeviceCapabilities>,
pub results: Vec<GpuTestResult>,
}Expand description
Collection of test results.
Fields§
§backend: StringBackend name
capabilities: Option<DeviceCapabilities>Device capabilities
results: Vec<GpuTestResult>Individual test results
Implementations§
Source§impl GpuTestReport
impl GpuTestReport
Sourcepub fn with_capabilities(self, caps: DeviceCapabilities) -> Self
pub fn with_capabilities(self, caps: DeviceCapabilities) -> Self
Set device capabilities.
Sourcepub fn add_result(&mut self, result: GpuTestResult)
pub fn add_result(&mut self, result: GpuTestResult)
Add a test result.
Sourcepub fn passed_count(&self) -> usize
pub fn passed_count(&self) -> usize
Get number of passed tests.
Sourcepub fn failed_count(&self) -> usize
pub fn failed_count(&self) -> usize
Get number of failed tests.
Sourcepub fn print_summary(&self)
pub fn print_summary(&self)
Print a summary of the report.
Trait Implementations§
Source§impl Debug for GpuTestReport
impl Debug for GpuTestReport
Source§impl Default for GpuTestReport
impl Default for GpuTestReport
Source§fn default() -> GpuTestReport
fn default() -> GpuTestReport
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for GpuTestReport
impl RefUnwindSafe for GpuTestReport
impl Send for GpuTestReport
impl Sync for GpuTestReport
impl Unpin for GpuTestReport
impl UnsafeUnpin for GpuTestReport
impl UnwindSafe for GpuTestReport
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> 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