[][src]Struct rosy::SymbolId

pub struct 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 Copy for SymbolId[src]

impl Clone for 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 Debug for SymbolId[src]

Auto Trait Implementations

impl Send for SymbolId

impl Sync for SymbolId

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]