Enum Licence Copy item path Source pub enum Licence {
Mit,
Lgpl,
Bsd,
MingwPermissive,
Apache2,
AppleSdk,
MicrosoftSdk,
}Expand description The licence an input arrives under.
The list is section 8.2’s table with one variant per row, rather than a free text field, because
the question Licence::redistributable answers has to have an answer for every input and a
string does not.
musl, which is MIT and the reason it goes first.
glibc, which is LGPL. Redistributable, with obligations that
spec/cross-compile/13-distribution.md owns.
The BSD libcs, which are permissive.
mingw-w64, which is a mix of permissive licences and public domain headers.
Ours. The compiler’s own headers and its runtime.
The macOS SDK, restricted by the Xcode agreement to Apple-branded hardware. Never shipped,
only ever pointed at.
The Windows SDK and the universal CRT, which are not redistributable.
Whether an artifact containing this input can be published.
Two of the seven answer false, and they are the two section 8.6 calls legal walls rather
than engineering. A sysroot containing either is a local thing on the machine of somebody
who accepted the licence themselves.
The spelling in a manifest file.
Performs copy-assignment from
source.
Read more Formats the value using the given formatter.
Read more Formats the value using the given formatter.
Read more The associated error which can be returned from parsing.
Parses a string
s to return a value of this type.
Read more Compares and returns the maximum of two values.
Read more Compares and returns the minimum of two values.
Read more Restrict a value to a certain interval.
Read more 🔬 This is a nightly-only experimental API. (clamp_to)
Restrict a value to a certain range.
Read more This method returns an ordering between
self and
other values if one exists.
Read more Tests less than (for
self and
other) and is used by the
< operator.
Read more Tests less than or equal to (for
self and
other) and is used by the
<= operator.
Read more Tests greater than (for
self and
other) and is used by the
>
operator.
Read more Tests greater than or equal to (for
self and
other) and is used by
the
>= operator.
Read more Immutably borrows from an owned value.
Read more Mutably borrows from an owned value.
Read more 🔬 This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from
self to
dest.
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 Uses borrowed data to replace owned data, usually by cloning.
Read more Converts the given value to a
String.
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.