[−][src]Struct rosy::symbol::SymbolId
An identifier for a Symbol
.
What is Into<SymbolId>
?
This is a convenience trait implementation that allows for instantiating a
SymbolId
from a Rust
&str
or
Ruby String
. With it, one can simply pass a
normal string literal into a function that takes some impl Into<SymbolId>
.
For an example, look at Object::call
.
Methods
impl SymbolId
[src]
pub fn raw(self) -> usize
[src]
Returns the raw underlying ID.
pub fn name(self) -> &'static CStr
[src]
Returns the symbol's name as a nul-terminated C string.
Trait Implementations
impl Clone for SymbolId
[src]
fn clone(&self) -> SymbolId
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl From<String> for SymbolId
[src]
impl<'_> From<&'_ str> for SymbolId
[src]
impl From<Symbol> for SymbolId
[src]
impl From<SymbolId> for Symbol
[src]
impl Copy for SymbolId
[src]
impl Debug for SymbolId
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,