pub(crate) struct DefineContextAttr {
fields: Vec<DefineContextField>,
}Expand description
Fields§
§fields: Vec<DefineContextField>Implementations§
Source§impl DefineContextAttr
impl DefineContextAttr
pub(crate) fn gen(self) -> Result<TokenStream>
Trait Implementations§
Source§impl Clone for DefineContextAttr
impl Clone for DefineContextAttr
Source§fn clone(&self) -> DefineContextAttr
fn clone(&self) -> DefineContextAttr
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DefineContextAttr
impl Debug for DefineContextAttr
Source§impl Parse for DefineContextAttr
impl Parse for DefineContextAttr
fn parse(input: ParseStream<'_>) -> Result<Self>
Auto Trait Implementations§
impl !Send for DefineContextAttr
impl !Sync for DefineContextAttr
impl Freeze for DefineContextAttr
impl RefUnwindSafe for DefineContextAttr
impl Unpin for DefineContextAttr
impl UnsafeUnpin for DefineContextAttr
impl UnwindSafe for DefineContextAttr
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more