pub struct VsFindResult {
pub windows_sdk_version: NonZeroU8,
pub windows_sdk_root: Option<OsString>,
pub windows_sdk_um_library_path: Option<OsString>,
pub windows_sdk_ucrt_library_path: Option<OsString>,
pub vs_exe_path: Option<OsString>,
pub vs_library_path: Option<OsString>,
}
Expand description
The result of looking for Visual Studio and Windows SDK.
Fields§
§windows_sdk_version: NonZeroU8
§windows_sdk_root: Option<OsString>
§windows_sdk_um_library_path: Option<OsString>
§windows_sdk_ucrt_library_path: Option<OsString>
§vs_exe_path: Option<OsString>
§vs_library_path: Option<OsString>
Implementations§
Source§impl VsFindResult
impl VsFindResult
Sourcepub fn search() -> Option<VsFindResult>
pub fn search() -> Option<VsFindResult>
Use vswhom-sys
to find Visual Studio and Windows SDK and parse it.
Always returns None
on non-Windows.
Sourcepub unsafe fn from_raw_result(res: &Find_Result) -> Option<VsFindResult>
pub unsafe fn from_raw_result(res: &Find_Result) -> Option<VsFindResult>
Parse a result from vswhom_sys
.
Returns None
if windows_sdk_version
is 0
.
Allocates fresh Rust OsString
s where non-null.
Always returns None
on non-Windows.
Trait Implementations§
Source§impl Clone for VsFindResult
impl Clone for VsFindResult
Source§fn clone(&self) -> VsFindResult
fn clone(&self) -> VsFindResult
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for VsFindResult
impl Debug for VsFindResult
Source§impl Hash for VsFindResult
impl Hash for VsFindResult
Source§impl Ord for VsFindResult
impl Ord for VsFindResult
Source§fn cmp(&self, other: &VsFindResult) -> Ordering
fn cmp(&self, other: &VsFindResult) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for VsFindResult
impl PartialEq for VsFindResult
Source§impl PartialOrd for VsFindResult
impl PartialOrd for VsFindResult
impl Eq for VsFindResult
impl StructuralPartialEq for VsFindResult
Auto Trait Implementations§
impl Freeze for VsFindResult
impl RefUnwindSafe for VsFindResult
impl Send for VsFindResult
impl Sync for VsFindResult
impl Unpin for VsFindResult
impl UnwindSafe for VsFindResult
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)