pub struct NvSdkRoot(pub PathBuf);Expand description
Resolved NV SDK root (either a packaged read-only SDK containing sdk-manifest.json or a
local monorepo checkout containing hosts/ and packages/core/abi).
Tuple Fields§
§0: PathBufImplementations§
Source§impl NvSdkRoot
impl NvSdkRoot
pub fn path(&self) -> &Path
Sourcepub fn is_packaged_sdk(&self) -> bool
pub fn is_packaged_sdk(&self) -> bool
Returns true when this root is a packaged read-only SDK tarball (sdk-manifest.json).
Sourcepub fn manifest(&self) -> Result<Option<SdkManifest>, String>
pub fn manifest(&self) -> Result<Option<SdkManifest>, String>
Loads sdk-manifest.json when present (packaged SDK), returning Ok(None) for checkouts.
Sourcepub fn has_prebuilt_codegen(&self) -> bool
pub fn has_prebuilt_codegen(&self) -> bool
Returns true when sdk-manifest.json exists and declares prebuilt_codegen: true.
Trait Implementations§
impl Eq for NvSdkRoot
impl StructuralPartialEq for NvSdkRoot
Auto Trait Implementations§
impl Forget for NvSdkRoot
impl Freeze for NvSdkRoot
impl Move for NvSdkRoot
impl RefUnwindSafe for NvSdkRoot
impl Send for NvSdkRootwhere
RawVecInner: Send,
impl Sync for NvSdkRootwhere
RawVecInner: Sync,
impl Unpin for NvSdkRoot
impl UnsafeUnpin for NvSdkRoot
impl UnwindSafe for NvSdkRootwhere
RawVecInner: UnwindSafe,
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.