Trait manually_boxed::IsTokenRef

source ·
pub unsafe trait IsTokenRef<'a>: Sized + Sealed {
    // Provided method
    fn token_ref(self) -> TokenRef<'a> { ... }
}
Expand description

Token-like: &self implies &NoAliasSingleton

Implemented for NoAliasSingleton and the ZST reference tokens, and &-references to them.

Provided Methods§

source

fn token_ref(self) -> TokenRef<'a>

Obtains a new ZST token from something that might be a real object.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<'a> IsTokenRef<'a> for &'a NoAliasSingleton

source§

impl<'a> IsTokenRef<'a> for &'a mut NoAliasSingleton

source§

impl<'a> IsTokenRef<'a> for TokenMut<'a>

source§

impl<'a> IsTokenRef<'a> for TokenRef<'a>

source§

impl<'o, 'i: 'o, 'j: 'o> IsTokenRef<'o> for &'i TokenMut<'j>

source§

impl<'o, 'i: 'o, 'j: 'o> IsTokenRef<'o> for &'i TokenRef<'j>

source§

impl<'o, 'i: 'o, 'j: 'o> IsTokenRef<'o> for &'i mut TokenMut<'j>