pub struct Terminated<S> {
pub statement: S,
pub semicolon: _Scl,
}Expand description
A statement whose value is discarded by a trailing semicolon.
Fields§
§statement: S§semicolon: _SclImplementations§
Trait Implementations§
Source§impl<S: Clone> Clone for Terminated<S>
impl<S: Clone> Clone for Terminated<S>
Source§fn clone(&self) -> Terminated<S>
fn clone(&self) -> Terminated<S>
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<S: Debug> Debug for Terminated<S>
impl<S: Debug> Debug for Terminated<S>
impl<S: Eq> Eq for Terminated<S>
Source§impl<S: Parse> Parse for Terminated<S>
impl<S: Parse> Parse for Terminated<S>
fn parse(input: &mut ParseStream) -> Result<Self, TokenParseError>
Source§impl<S: PartialEq> PartialEq for Terminated<S>
impl<S: PartialEq> PartialEq for Terminated<S>
impl<S: PartialEq> StructuralPartialEq for Terminated<S>
Auto 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