pub struct Symbol { /* private fields */ }
Expand description
A symbol declaration, which may include a definition.
Implementations
sourceimpl Symbol
impl Symbol
sourcepub fn name(&self) -> &[u8]ⓘNotable traits for &[u8]impl Read for &[u8]impl Write for &mut [u8]
pub fn name(&self) -> &[u8]ⓘNotable traits for &[u8]impl Read for &[u8]impl Write for &mut [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 RefUnwindSafe for Symbol
impl Send for Symbol
impl Sync for Symbol
impl Unpin for Symbol
impl UnwindSafe for Symbol
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more