pub struct Symbol { /* private fields */ }
Implementations§
source§impl Symbol
impl Symbol
pub fn parent(&self) -> String
pub fn full_rust_name(&self) -> String
sourcepub fn make_trait(&mut self, trait_name: &str)
pub fn make_trait(&mut self, trait_name: &str)
Convert this symbol into a trait
sourcepub fn make_trait_method(&mut self, trait_name: &str)
pub fn make_trait_method(&mut self, trait_name: &str)
Convert this into a method of a trait
pub fn crate_name(&self) -> Option<&str>
pub fn owner_name(&self) -> Option<&str>
pub fn name(&self) -> &str
pub fn is_rust_prelude(&self) -> bool
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)