Struct Sdk

Source
pub struct Sdk { /* private fields */ }

Implementations§

Source§

impl Sdk

Source

pub fn path(&self) -> &Path

Source

pub fn c_api(&self) -> PathBuf

Source

pub fn build_support(&self) -> BuildSupport<'_>

Source

pub fn version_file(&self) -> PathBuf

Source

pub fn bin(&self) -> PathBuf

Source

pub fn pdc(&self) -> PathBuf

Source

pub fn pdutil(&self) -> PathBuf

Source§

impl Sdk

Source

pub fn try_new() -> Result<Self, Error>

Create new Sdk with auto-determining the SDK path

Source

pub fn try_new_exact<P: Into<PathBuf>>(root: P) -> Result<Self, Error>

Create new Sdk with exact passed SDK path

Source

pub fn try_from_default_env() -> Result<Self, Error>

Create new Sdk with default env var

Source

pub fn try_from_default_config() -> Result<Self, Error>

Create new Sdk with default env var

Source

pub fn try_from_default_path() -> Result<Self, Error>

Create new Sdk with default env var

Source

pub fn try_xdg_unix_path() -> Result<Self, Error>

Source§

impl Sdk

Auto Trait Implementations§

§

impl Freeze for Sdk

§

impl RefUnwindSafe for Sdk

§

impl Send for Sdk

§

impl Sync for Sdk

§

impl Unpin for Sdk

§

impl UnwindSafe for Sdk

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.