Skip to main content

available

Function available 

Source
pub const fn available() -> bool
Expand description

Whether this target has a mechanism at all.

Exposed so a caller can tell “the test was not performed because this platform has no mechanism” from “the test was performed and failed”, without provoking a read to find out.