Struct AsPhantomData
Source pub struct AsPhantomData<'a>();
Expand description
Display wrapper that outputs generic parameters as a PhantomData
This is used to format generic parameters as a PhantomData type
for use in trait implementations.
§Example
For parameters <'a, T, const N: usize>, this will display
::core::marker::PhantomData<(*mut &'__facet (), T, [u32; N])>.
Write
self to the given
TokenStream.
Read more
Convert
self directly into a
TokenStream object.
Read more
Convert
self directly into a
TokenStream object.
Read more
Immutably borrows from an owned value.
Read more
Mutably borrows from an owned value.
Read more
Returns the argument unchanged.
Calls U::from(self).
That is, this conversion is whatever the implementation of
From<T> for U chooses to do.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.