pub struct InvariantDecl {
pub name: Ident,
pub condition: Expr,
pub span: Span,
}Expand description
invariant name { expr }
Fields§
§name: Ident§condition: Expr§span: SpanTrait Implementations§
Source§impl Clone for InvariantDecl
impl Clone for InvariantDecl
Source§fn clone(&self) -> InvariantDecl
fn clone(&self) -> InvariantDecl
Returns a duplicate of the value. Read more
1.0.0 · 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 InvariantDecl
impl Debug for InvariantDecl
Source§impl<'de> Deserialize<'de> for InvariantDecl
impl<'de> Deserialize<'de> for InvariantDecl
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for InvariantDecl
impl PartialEq for InvariantDecl
Source§impl Serialize for InvariantDecl
impl Serialize for InvariantDecl
impl StructuralPartialEq for InvariantDecl
Auto Trait Implementations§
impl Freeze for InvariantDecl
impl RefUnwindSafe for InvariantDecl
impl Send for InvariantDecl
impl Sync for InvariantDecl
impl Unpin for InvariantDecl
impl UnwindSafe for InvariantDecl
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