pub struct StaticAssert {
pub cond: Expr,
pub message: Option<String>,
pub range: SourceRange,
}Expand description
_Static_assert(expr, "message"); — C11 6.7.10, whose message C23 makes
optional.
Fields§
§cond: ExprThe constant expression that must be non-zero.
message: Option<String>The message, as written (quotes included), if one was given.
range: SourceRangeWhere the whole declaration was written.
Trait Implementations§
Source§impl Clone for StaticAssert
impl Clone for StaticAssert
Source§impl Debug for StaticAssert
impl Debug for StaticAssert
Source§impl PartialEq for StaticAssert
impl PartialEq for StaticAssert
impl StructuralPartialEq for StaticAssert
Auto Trait Implementations§
impl Freeze for StaticAssert
impl RefUnwindSafe for StaticAssert
impl Send for StaticAssert
impl Sync for StaticAssert
impl Unpin for StaticAssert
impl UnsafeUnpin for StaticAssert
impl UnwindSafe for StaticAssert
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