Skip to main content

Wall

Enum Wall 

Source
pub enum Wall {
    Apple,
    Microsoft,
}
Expand description

A target whose system headers and link inputs are not ours to distribute.

Variants§

§

Apple

Apple’s, which is macOS and iOS.

§

Microsoft

Microsoft’s, which is a Windows target in the MSVC environment and not a mingw-w64 one.

Implementations§

Source§

impl Wall

Source

pub const fn of(target: TargetTuple) -> Option<Self>

The wall this target is behind, or None for the rest of the table.

The environment decides the Windows answer and the operating system decides the Apple one, because the two Windows environments are two different sets of link inputs under two different licences while every Apple platform reads one SDK.

Source

pub const fn sdk(self) -> &'static str

What is behind the wall, named the way the platform’s own documentation names it.

Source

pub const fn licence(self) -> &'static str

The licence that puts it there, as a clause a sentence can be built around.

Source

pub const fn under(self) -> Licence

The licence as an identifier rather than as a clause, which is what a record carries.

Two spellings of one fact, and they are both here because a sentence and a field want different things. Wall::licence is what a person is told and reads as English. This is what crate::distribution writes into a column, where a clause would be unreadable and a second vocabulary of licence names would be a thing to keep in step with crate::Licence.

Source

pub const fn ways(self) -> &'static str

The lawful ways to get what is behind the wall, which every message here ends with.

A flag in each, because section 8.6’s third rule is that the fetch is never automatic and never silent, so every one of these paths is a person naming a path once.

Source

pub fn no_headers(self, target: &str) -> String

Why a compile for target has no library headers to read.

The target is spelled by the caller rather than taken from the tuple, so that the message says the target the way the command line said it.

Source

pub fn no_fetch(self, target: &str) -> String

Why a fetch cannot get the sysroot for target, which no release of this compiler will pin.

Trait Implementations§

Source§

impl Clone for Wall

Source§

fn clone(&self) -> Wall

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for Wall

Source§

impl Debug for Wall

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for Wall

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Whose wall it is, for a message that has already said what is behind it.

Source§

impl Eq for Wall

Source§

impl PartialEq for Wall

Source§

fn eq(&self, other: &Wall) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for Wall

Auto Trait Implementations§

§

impl Freeze for Wall

§

impl RefUnwindSafe for Wall

§

impl Send for Wall

§

impl Sync for Wall

§

impl Unpin for Wall

§

impl UnsafeUnpin for Wall

§

impl UnwindSafe for Wall

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

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

fn clone_into(&self, target: &mut T)

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

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

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

Source§

type Error = !

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

fn try_from(value: U) -> Result<T, !>

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.