pub enum CppFormalRole<'tree> {
Declared {
parameter: Node<'tree>,
name: Option<Node<'tree>>,
receiver: bool,
required: bool,
variadic: bool,
},
Void,
Ellipsis,
Other,
}Expand description
A grammar role for one direct child of a C or C++ parameter list. Invalid and stopped classifications are separate from a valid empty list.
Variants§
Trait Implementations§
Source§impl<'tree> Clone for CppFormalRole<'tree>
impl<'tree> Clone for CppFormalRole<'tree>
impl<'tree> Copy for CppFormalRole<'tree>
Auto Trait Implementations§
impl<'tree> Forget for CppFormalRole<'tree>
impl<'tree> Freeze for CppFormalRole<'tree>
impl<'tree> Move for CppFormalRole<'tree>
impl<'tree> RefUnwindSafe for CppFormalRole<'tree>
impl<'tree> Send for CppFormalRole<'tree>
impl<'tree> Sync for CppFormalRole<'tree>
impl<'tree> Unpin for CppFormalRole<'tree>
impl<'tree> UnsafeUnpin for CppFormalRole<'tree>
impl<'tree> UnwindSafe for CppFormalRole<'tree>
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