pub struct Definition<B> {
pub name: DefinitionName,
pub body_span: Span,
pub body: B,
}Fields§
§name: DefinitionName§body_span: Span§body: BTrait Implementations§
Source§impl<B: Debug> Debug for Definition<B>
impl<B: Debug> Debug for Definition<B>
Source§impl<B: FindRecogMetas> FindRecogMetas for Definition<B>
impl<B: FindRecogMetas> FindRecogMetas for Definition<B>
Source§fn find_recog_metas(&self, acc: &mut Recognised)
fn find_recog_metas(&self, acc: &mut Recognised)
Search for
fmeta(..) etc. expansions Read moreSource§impl Parse for Definition<Box<Subst<BooleanContext>>>
impl Parse for Definition<Box<Subst<BooleanContext>>>
fn parse(input: ParseStream<'_>) -> Result<Self>
Source§impl Parse for Definition<DefinitionBody>
impl Parse for Definition<DefinitionBody>
fn parse(input: ParseStream<'_>) -> Result<Self>
Auto Trait Implementations§
impl<B> Freeze for Definition<B>where
B: Freeze,
impl<B> RefUnwindSafe for Definition<B>where
B: RefUnwindSafe,
impl<B> !Send for Definition<B>
impl<B> !Sync for Definition<B>
impl<B> Unpin for Definition<B>where
B: Unpin,
impl<B> UnwindSafe for Definition<B>where
B: 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
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