#[repr(C)]
pub struct get_hostfxr_parameters { pub size: size_t, pub assembly_path: *const char_t, pub dotnet_root: *const char_t, }
Expand description

Parameters for get_hostfxr_path.

Fields§

§size: size_t

Size of the struct. This is used for versioning.

§assembly_path: *const char_t

Path to the compenent’s assembly. If specified, hostfxr is located as if the assembly_path is the apphost

§dotnet_root: *const char_t

Path to directory containing the dotnet executable. If specified, hostfxr is located as if an application is started using dotnet app.dll, which means it will be searched for under the dotnet_root path and the assembly_path is ignored.

Implementations§

source§

impl get_hostfxr_parameters

source

pub fn with_dotnet_root(dotnet_root: *const char_t) -> Self

Creates a new instance of get_hostfxr_parameters with the given dotnet_root. The size field is set accordingly to the size of the struct and assembly_path to ptr::null().

source

pub fn with_assembly_path(assembly_path: *const char_t) -> Self

Creates a new instance of get_hostfxr_parameters with the given assembly_path. The size field is set accordingly to the size of the struct and dotnet_root to ptr::null().

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

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

const: unstable · 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 Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

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

Performs the conversion.
source§

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

§

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

The type returned in the event of a conversion error.
const: unstable · source§

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

Performs the conversion.