pub struct PlatformAvailability {
    pub platform: String,
    pub unavailable: bool,
    pub introduced: Option<Version>,
    pub deprecated: Option<Version>,
    pub obsoleted: Option<Version>,
    pub message: Option<String>,
}
Expand description

The availability of an AST entity on a particular platform.

Fields

platform: String

The name of the platform.

unavailable: bool

Whether the AST entity is unavailable on the platform.

introduced: Option<Version>

The version of the platform in which this AST entity was introduced, if any.

deprecated: Option<Version>

The version of the platform in which this AST entity was deprecated, if any.

obsoleted: Option<Version>

The version of the platform in which this AST entity was obsoleted, if any.

message: Option<String>

A message to display to users (e.g., replacement API suggestions).

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.