pub enum Visibility {
Default,
Hidden,
Protected,
}
Expand description
Specifies the symbol visibility with regards to dynamic linking.
Visibility doesn’t have any effect when linkage is internal.
DSO means dynamic shared object, that is a dynamically linked executable or dylib.
Variants§
Default
Export the symbol from the DSO and apply overrides of the symbol by outside DSOs to within the DSO if the object file format supports this.
Hidden
Hide the symbol outside of the defining DSO even when external linkage is used to export it from the object file.
Protected
Export the symbol from the DSO, but don’t apply overrides of the symbol by outside DSOs to within the DSO. Equivalent to default visibility with object file formats that don’t support overriding exported symbols by another DSO.
Auto Trait Implementations§
impl Freeze for Visibility
impl RefUnwindSafe for Visibility
impl Send for Visibility
impl Sync for Visibility
impl Unpin 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