Enum ezno_parser::MethodHeader
source · pub enum MethodHeader {
Get(Keyword<Get>),
Set(Keyword<Set>),
GeneratorStar(Option<Keyword<Async>>, Span),
Generator(Option<Keyword<Async>>, Keyword<Generator>),
Async(Keyword<Async>),
}
Expand description
This structure removes possible invalid combinations with async
Variants§
Get(Keyword<Get>)
Set(Keyword<Set>)
GeneratorStar(Option<Keyword<Async>>, Span)
Generator(Option<Keyword<Async>>, Keyword<Generator>)
Async(Keyword<Async>)
Trait Implementations§
source§impl Clone for MethodHeader
impl Clone for MethodHeader
source§fn clone(&self) -> MethodHeader
fn clone(&self) -> MethodHeader
Returns a copy of the value. Read more
1.0.0 · 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 MethodHeader
impl Debug for MethodHeader
source§impl PartialEq for MethodHeader
impl PartialEq for MethodHeader
source§fn eq(&self, other: &MethodHeader) -> bool
fn eq(&self, other: &MethodHeader) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl SelfRustTokenize for MethodHeader
impl SelfRustTokenize for MethodHeader
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
source§impl Serialize for MethodHeader
impl Serialize for MethodHeader
impl Eq for MethodHeader
impl StructuralEq for MethodHeader
impl StructuralPartialEq for MethodHeader
Auto Trait Implementations§
impl RefUnwindSafe for MethodHeader
impl Send for MethodHeader
impl Sync for MethodHeader
impl Unpin for MethodHeader
impl UnwindSafe for MethodHeader
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