pub struct SynchronizedStmt {
pub leading_comments: Vec<Comment>,
pub synchronized_span: Span,
pub paren_span: (Span, Span),
pub lock: Expr,
pub body: Block,
}Expand description
A synchronized statement.
Fields§
§leading_comments: Vec<Comment>§synchronized_span: Span§paren_span: (Span, Span)§lock: Expr§body: BlockImplementations§
Trait Implementations§
Source§impl Clone for SynchronizedStmt
impl Clone for SynchronizedStmt
Source§fn clone(&self) -> SynchronizedStmt
fn clone(&self) -> SynchronizedStmt
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 Debug for SynchronizedStmt
impl Debug for SynchronizedStmt
impl Eq for SynchronizedStmt
Source§impl Hash for SynchronizedStmt
impl Hash for SynchronizedStmt
Source§impl PartialEq for SynchronizedStmt
impl PartialEq for SynchronizedStmt
Source§fn eq(&self, other: &SynchronizedStmt) -> bool
fn eq(&self, other: &SynchronizedStmt) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SynchronizedStmt
Auto Trait Implementations§
impl Freeze for SynchronizedStmt
impl RefUnwindSafe for SynchronizedStmt
impl Send for SynchronizedStmt
impl Sync for SynchronizedStmt
impl Unpin for SynchronizedStmt
impl UnsafeUnpin for SynchronizedStmt
impl UnwindSafe for SynchronizedStmt
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