[][src]Struct rust_info::types::RustInfo

pub struct RustInfo {
    pub version: Option<String>,
    pub channel: Option<RustChannel>,
    pub target_arch: Option<String>,
    pub target_env: Option<String>,
    pub target_os: Option<String>,
    pub target_pointer_width: Option<String>,
    pub target_vendor: Option<String>,
    pub target_triple: Option<String>,
}

Holds the current rust installation and setup information

Fields

version: Option<String>

version

channel: Option<RustChannel>

channel

target_arch: Option<String>

target arch cfg value

target_env: Option<String>

target env cfg value

target_os: Option<String>

target OS cfg value

target_pointer_width: Option<String>

target pointer width cfg value

target_vendor: Option<String>

target vendor cfg value

target_triple: Option<String>

target triple constructed from target arc, vendor, os and env

Methods

impl RustInfo[src]

pub fn new() -> RustInfo[src]

Returns new instance

Trait Implementations

impl Clone for RustInfo[src]

impl Debug for RustInfo[src]

impl Default for RustInfo[src]

impl PartialEq<RustInfo> for RustInfo[src]

impl StructuralPartialEq for RustInfo[src]

Auto Trait Implementations

impl RefUnwindSafe for RustInfo

impl Send for RustInfo

impl Sync for RustInfo

impl Unpin for RustInfo

impl UnwindSafe for RustInfo

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.