pub struct Body {
pub exprs: Vec<Expression>,
pub full_stopped: bool,
}
Expand description
Represents the contents of a body (within a term or block).
Exemple:
"body within a term"
new = (
local := counter + 5.
(counter get) > 5
)
"body within a block"
[ :arg |
local := counter + arg.
arg * (counter get)
]
Fields§
§exprs: Vec<Expression>
The expressions in the body.
full_stopped: bool
Is the last expression terminated with a period ?
Trait Implementations§
source§impl PartialEq for Body
impl PartialEq for Body
impl StructuralPartialEq for Body
Auto Trait Implementations§
impl Freeze for Body
impl RefUnwindSafe for Body
impl Send for Body
impl Sync for Body
impl Unpin for Body
impl UnwindSafe for Body
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