pub struct Block {
pub connect: bool,
pub start: String,
pub body: Vec<Code>,
pub end: String,
}Expand description
Code block
Fields§
§connect: boolIf this block should be connected to the end of the previous block
(for example, else {)
start: StringThe start of the block (for example, if (x) {)
body: Vec<Code>The body of the block. Usually the body is the part that gets indented
end: StringThe end of the block (for example, })
Trait Implementations§
source§impl PartialEq for Block
impl PartialEq for Block
impl StructuralPartialEq for Block
Auto Trait Implementations§
impl Freeze for Block
impl RefUnwindSafe for Block
impl Send for Block
impl Sync for Block
impl Unpin for Block
impl UnwindSafe for Block
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