pub struct Terminated<S> {
pub statement: S,
pub semicolon: _Scl,
}Expand description
A statement whose value is discarded by a trailing semicolon.
Fields§
§statement: SThe statement whose result is discarded.
semicolon: _SclThe terminating semicolon.
Implementations§
Trait Implementations§
Source§impl<S: Lex> Lex for Terminated<S>
impl<S: Lex> Lex for Terminated<S>
Source§fn to_tokens(&self, output: &mut TokenStream)
fn to_tokens(&self, output: &mut TokenStream)
Appends this value’s token trees to
output.Source§fn to_token_stream(&self) -> TokenStream
fn to_token_stream(&self) -> TokenStream
Emits this value into a fresh token stream.
Source§impl<S: Parse> Parse for Terminated<S>
impl<S: Parse> Parse for Terminated<S>
Source§fn parse(input: &mut ParseStream) -> Result<Self, TokenParseError>
fn parse(input: &mut ParseStream) -> Result<Self, TokenParseError>
Consumes this value from
input. Read moreAuto Trait Implementations§
impl<S> Freeze for Terminated<S>where
S: Freeze,
impl<S> RefUnwindSafe for Terminated<S>where
S: RefUnwindSafe,
impl<S> Send for Terminated<S>where
S: Send,
impl<S> Sync for Terminated<S>where
S: Sync,
impl<S> Unpin for Terminated<S>where
S: Unpin,
impl<S> UnsafeUnpin for Terminated<S>where
S: UnsafeUnpin,
impl<S> UnwindSafe for Terminated<S>where
S: 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