pub fn validate_device<S: BackendSupport>(
support: &S,
device: Device,
) -> Result<Device, String>Expand description
Validate that device is supported by family. Returns the same device
on success; on failure, formats a uniform error string. Callers that
need a typed error should use BackendSupport::supports directly.