pub struct AssertStmt {
pub leading_comments: Vec<Comment>,
pub assert_span: Span,
pub cond: Expr,
pub detail: Option<(Span, Expr)>,
pub semi_span: Span,
}Expand description
An assert statement.
Fields§
§leading_comments: Vec<Comment>§assert_span: Span§cond: Expr§detail: Option<(Span, Expr)>§semi_span: SpanImplementations§
Trait Implementations§
Source§impl Clone for AssertStmt
impl Clone for AssertStmt
Source§fn clone(&self) -> AssertStmt
fn clone(&self) -> AssertStmt
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 AssertStmt
impl Debug for AssertStmt
impl Eq for AssertStmt
Source§impl Hash for AssertStmt
impl Hash for AssertStmt
Source§impl PartialEq for AssertStmt
impl PartialEq for AssertStmt
Source§fn eq(&self, other: &AssertStmt) -> bool
fn eq(&self, other: &AssertStmt) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AssertStmt
Auto Trait Implementations§
impl Freeze for AssertStmt
impl RefUnwindSafe for AssertStmt
impl Send for AssertStmt
impl Sync for AssertStmt
impl Unpin for AssertStmt
impl UnsafeUnpin for AssertStmt
impl UnwindSafe for AssertStmt
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