pub enum Visibility {
DefaultVisibility,
HiddenVisibility,
ProtectedVisibility,
}
Expand description
Visibility
is an enumeration in LLVM that represents the
visibility of global values such as functions and global
variables. Visibility determines how symbols are treated by
the linker and whether they can be seen by other modules or
shared libraries.
Generally Visibility
represent access to the symbol after Linkage
.
Useful to compose Linkage
and Visibility
to define the symbol behavior.
Variants§
DefaultVisibility
Default visibility. The symbol is visible to other modules.
HiddenVisibility
Hidden visibility. The symbol is not visible to other modules or shared libraries.
ProtectedVisibility
Protected visibility. The symbol is visible to other modules but cannot be overridden.
Trait Implementations§
Source§impl Clone for Visibility
impl Clone for Visibility
Source§fn clone(&self) -> Visibility
fn clone(&self) -> Visibility
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for Visibility
impl Debug for Visibility
Source§impl From<LLVMVisibility> for Visibility
impl From<LLVMVisibility> for Visibility
Source§fn from(visibility: LLVMVisibility) -> Self
fn from(visibility: LLVMVisibility) -> Self
Converts to this type from the input type.
Source§impl From<Visibility> for LLVMVisibility
impl From<Visibility> for LLVMVisibility
Source§fn from(visibility: Visibility) -> Self
fn from(visibility: Visibility) -> Self
Converts to this type from the input type.
Source§impl PartialEq for Visibility
impl PartialEq for Visibility
impl Copy for Visibility
impl Eq 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 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