pub struct TraitSpecifier {
pub abstract_trait: Type,
pub arrow_token: FatArrow,
pub concrete: Type,
}Expand description
Type that holds an abstract type and how it will map to a concrete type.
An acceptable stream will have the following form:
trait => concreteFields§
§abstract_trait: Type§arrow_token: FatArrow§concrete: TypeTrait Implementations§
Source§impl Interpolate for TraitSpecifier
Make TraitSpecifier interpolatible
impl Interpolate for TraitSpecifier
Make TraitSpecifier interpolatible
Source§fn interpolate(&self, stream: TokenStream) -> TokenStream
fn interpolate(&self, stream: TokenStream) -> TokenStream
Take a token stream and replace interpolation markers with their actual values into a new stream
using interpolate
Source§impl Parse for TraitSpecifier
Make TraitSpecifier parsable from a token stream
impl Parse for TraitSpecifier
Make TraitSpecifier parsable from a token stream
fn parse(input: ParseStream<'_>) -> Result<Self>
Auto Trait Implementations§
impl Freeze for TraitSpecifier
impl RefUnwindSafe for TraitSpecifier
impl !Send for TraitSpecifier
impl !Sync for TraitSpecifier
impl Unpin for TraitSpecifier
impl UnwindSafe for TraitSpecifier
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more