pub enum Visibility {
Default,
Hidden,
Protected,
}Expand description
How far outside a shared library a function’s name reaches.
Here for the reason Binding is here and not for any other: everything between the IR and
the object file is handed machine functions, so a fact about the symbol that is not on one is
a fact that is gone by the time anything can write it down. Nothing in this crate reads it.
The three the IR has, unnarrowed, because ELF says all three and the format is what decides how many there are rather than the machine.
Variants§
Default
In the dynamic symbol table and interposable, which is what a name nothing marked gets.
Hidden
Not in the dynamic symbol table, so nothing outside the library can name it.
Protected
In the dynamic symbol table, and a call from inside the library binds to the definition inside it.
Trait Implementations§
Source§impl Clone for Visibility
impl Clone for Visibility
Source§fn clone(&self) -> Visibility
fn clone(&self) -> Visibility
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for Visibility
Source§impl Debug for Visibility
impl Debug for Visibility
Source§impl Default for Visibility
impl Default for Visibility
Source§fn default() -> Visibility
fn default() -> Visibility
Returns the “default value” for a type. Read more
impl Eq for Visibility
Source§impl PartialEq for Visibility
impl PartialEq for Visibility
impl StructuralPartialEq for Visibility
Auto Trait Implementations§
impl Freeze for Visibility
impl RefUnwindSafe for Visibility
impl Send for Visibility
impl Sync for Visibility
impl Unpin for Visibility
impl UnsafeUnpin for Visibility
impl UnwindSafe for Visibility
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more