pub struct LawDecl {
pub span: Span,
pub name: String,
pub condition: Expr,
pub consequence: Expr,
}Expand description
A law declaration (T30).
law crush
when sample(pressure_ambient, pose(self)) > self.material.yield
=> transform.yield(self);Fields§
§span: Span§name: String§condition: ExprThe condition expression (after when).
consequence: ExprThe consequence expression (after =>).
Trait Implementations§
impl StructuralPartialEq for LawDecl
Auto Trait Implementations§
impl Freeze for LawDecl
impl RefUnwindSafe for LawDecl
impl Send for LawDecl
impl Sync for LawDecl
impl Unpin for LawDecl
impl UnsafeUnpin for LawDecl
impl UnwindSafe for LawDecl
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