I realize that this is likely an issue with the visibility of the method in the library, but I'm not sure how to limit it to the crate.
The documentation shows the following:
However this From implementation is only really used by the library itself to convert to an underlying type.
The relevant section in code looks like this:
pub enum Compatibility {
/// The task is compatible with the AT command.
AT = 0,
/// The task is compatible with Task Scheduler 1.0.
V1,
/// The task is compatible with Task Scheduler 2.0.
V2,
}
use windows::Win32::System::TaskScheduler::TASK_COMPATIBILITY;
impl From<Compatibility> for TASK_COMPATIBILITY {
fn from(item: Compatibility) -> Self {
TASK_COMPATIBILITY(item as i32)
}
}
I was expecting that the documentation would not show the impl From
part since it is private. I'm not sure why it is not the case.
Edit: The above code is in a module called settings which lib.rs
exposes as pub mod settings
. Just in case it is related to the issue.