Struct proc_macro_assertions::passed_data::PassedData
source · pub struct PassedData<T> { /* private fields */ }
Expand description
Data passed between stages during generation of Generatable
types.
Implementations§
source§impl<T> PassedData<T>
impl<T> PassedData<T>
sourcepub fn tokens(tokens: TokenStream) -> Selfwhere
T: Default,
pub fn tokens(tokens: TokenStream) -> Selfwhere T: Default,
Create new passed data from tokens
sourcepub fn without_data(self) -> PassedData<()>
pub fn without_data(self) -> PassedData<()>
Remove the data from Self
.
sourcepub fn with_tokens(self, tokens: TokenStream) -> Self
pub fn with_tokens(self, tokens: TokenStream) -> Self
Change tokens of Self
to tokens
.
Trait Implementations§
source§impl<T: Debug> Debug for PassedData<T>
impl<T: Debug> Debug for PassedData<T>
source§impl<T: Default> Default for PassedData<T>
impl<T: Default> Default for PassedData<T>
source§fn default() -> PassedData<T>
fn default() -> PassedData<T>
Returns the “default value” for a type. Read more
source§impl<T> Deref for PassedData<T>
impl<T> Deref for PassedData<T>
source§impl<T> DerefMut for PassedData<T>
impl<T> DerefMut for PassedData<T>
source§impl<T> From<PassedData<T>> for TokenStream
impl<T> From<PassedData<T>> for TokenStream
source§fn from(passed_data: PassedData<T>) -> Self
fn from(passed_data: PassedData<T>) -> Self
Converts to this type from the input type.
source§impl<T> PartialEq for PassedData<T>where
T: Eq,
impl<T> PartialEq for PassedData<T>where T: Eq,
impl<T> Eq for PassedData<T>where T: Eq,
Auto Trait Implementations§
impl<T> RefUnwindSafe for PassedData<T>where T: RefUnwindSafe,
impl<T> !Send for PassedData<T>
impl<T> !Sync for PassedData<T>
impl<T> Unpin for PassedData<T>where T: Unpin,
impl<T> UnwindSafe for PassedData<T>where T: UnwindSafe,
Blanket Implementations§
source§impl<T> AnyExt for Twhere
T: Any + ?Sized,
impl<T> AnyExt for Twhere T: Any + ?Sized,
source§fn downcast_ref<T>(this: &Self) -> Option<&T>where
T: Any,
fn downcast_ref<T>(this: &Self) -> Option<&T>where T: Any,
Attempts to downcast this to
T
behind referencesource§fn downcast_mut<T>(this: &mut Self) -> Option<&mut T>where
T: Any,
fn downcast_mut<T>(this: &mut Self) -> Option<&mut T>where T: Any,
Attempts to downcast this to
T
behind mutable referencesource§fn downcast_rc<T>(this: Rc<Self>) -> Result<Rc<T>, Rc<Self>>where
T: Any,
fn downcast_rc<T>(this: Rc<Self>) -> Result<Rc<T>, Rc<Self>>where T: Any,
Attempts to downcast this to
T
behind Rc
pointersource§fn downcast_arc<T>(this: Arc<Self>) -> Result<Arc<T>, Arc<Self>>where
T: Any,
fn downcast_arc<T>(this: Arc<Self>) -> Result<Arc<T>, Arc<Self>>where T: Any,
Attempts to downcast this to
T
behind Arc
pointersource§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