pub struct Marker<T>(pub u8, pub PhantomData<T>);
Expand description
Places in the AST which are either partial OR will recieve data from the generator
Tuple Fields§
§0: u8
§1: PhantomData<T>
Trait Implementations§
Source§impl<T> SelfRustTokenize for Marker<T>
impl<T> SelfRustTokenize for Marker<T>
fn append_to_token_stream(&self, token_stream: &mut TokenStream)
Source§fn to_tokens(&self) -> TokenStream
fn to_tokens(&self) -> TokenStream
Returns the tokens used to construct self
impl<T: Copy> Copy for Marker<T>
impl<T: Eq> Eq for Marker<T>
impl<T> StructuralPartialEq for Marker<T>
Auto Trait Implementations§
impl<T> Freeze for Marker<T>
impl<T> RefUnwindSafe for Marker<T>where
T: RefUnwindSafe,
impl<T> Send for Marker<T>where
T: Send,
impl<T> Sync for Marker<T>where
T: Sync,
impl<T> Unpin for Marker<T>where
T: Unpin,
impl<T> UnwindSafe for Marker<T>where
T: UnwindSafe,
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