Enum Visibility Copy item path Source pub enum Visibility {
Default,
Hidden,
Protected,
}Expand description How far a name reaches outside a shared library when nothing in the source said.
-fvisibility=, which is written on every cmake project that cares about its exports and is
the way a library ships a small documented interface instead of every name it happens to
define. The attribute in the source wins wherever one was written, which is what makes the
flag a default rather than an override and what lets -fvisibility=hidden be put on a whole
tree and the dozen exported names marked one at a time.
Three answers to four spellings. internal is hidden plus a promise about never taking the
address across a component boundary, and nothing here derives anything from that promise, so
what it gets is the same symbol with a weaker claim on it.
-fvisibility=default. Exported and interposable, which is what a name gets when the flag
is not written at all and what gcc does by default too.
-fvisibility=hidden and -fvisibility=internal. Not in the dynamic symbol table.
-fvisibility=protected. In the dynamic symbol table, and a reference from inside the
library binds to the definition inside it.
The spelling this is asked for by, without the flag in front of it.
One spelling each, so internal is not here: it is a way of asking for hidden rather
than an answer of its own.
Performs copy-assignment from
source.
Read more Formats the value using the given formatter.
Read more Returns the “default value” for a type.
Read more Formats the value using the given formatter.
Read more Parses the part after -fvisibility=.
The associated error which can be returned from parsing.
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.