pub struct Symbol { /* private fields */ }
Expand description
A symbol declaration, which may include a definition.
Implementations§
Source§impl Symbol
impl Symbol
Sourcepub fn name(&self) -> &[u8] ⓘ
pub fn name(&self) -> &[u8] ⓘ
The symbol’s name, as stored raw in the object file. Like all names pulled from object files, this is not guaranteed to be valid UTF-8.
Sourcepub fn visibility(&self) -> &SymbolVisibility
pub fn visibility(&self) -> &SymbolVisibility
The symbol’s visibility, including its definition data (if any).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Symbol
impl RefUnwindSafe for Symbol
impl Send for Symbol
impl Sync for Symbol
impl Unpin for Symbol
impl UnwindSafe for Symbol
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