Struct clang::PlatformAvailability
source · [−]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.
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
sourceimpl Clone for PlatformAvailability
impl Clone for PlatformAvailability
sourcefn clone(&self) -> PlatformAvailability
fn clone(&self) -> PlatformAvailability
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for PlatformAvailability
impl Debug for PlatformAvailability
sourceimpl Hash for PlatformAvailability
impl Hash for PlatformAvailability
sourceimpl PartialEq<PlatformAvailability> for PlatformAvailability
impl PartialEq<PlatformAvailability> for PlatformAvailability
sourcefn eq(&self, other: &PlatformAvailability) -> bool
fn eq(&self, other: &PlatformAvailability) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &PlatformAvailability) -> bool
fn ne(&self, other: &PlatformAvailability) -> bool
This method tests for !=
.
impl Eq for PlatformAvailability
impl StructuralEq for PlatformAvailability
impl StructuralPartialEq for PlatformAvailability
Auto Trait Implementations
impl RefUnwindSafe for PlatformAvailability
impl Send for PlatformAvailability
impl Sync for PlatformAvailability
impl Unpin for PlatformAvailability
impl UnwindSafe for PlatformAvailability
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more