pub trait ToSymbol: ToSymbolPriv {
    // Provided method
    fn to_symbol<'target, T: Target<'target>>(&self, _: &T) -> Symbol<'target> { ... }
}
Expand description

Trait implemented by types that can be converted to a Symbol.

Provided Methods§

source

fn to_symbol<'target, T: Target<'target>>(&self, _: &T) -> Symbol<'target>

Convert self to a Symbol.

This method only needs a reference to a target because Symbol are globally rooted.

Object Safety§

This trait is not object safe.

Implementors§