hex-patch 1.12.5

HexPatch is a binary patcher and editor with terminal user interface (TUI), it's capable of disassembling instructions and assembling patches. It supports a variety of architectures and file formats. Also, it can edit remote files via SSH.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
#[derive(Clone, Copy, Debug)]
pub struct RectBorders {
    pub top: bool,
    pub bottom: bool,
    pub left: bool,
    pub right: bool,
}

impl RectBorders {
    pub fn any(&self) -> bool {
        self.top || self.bottom || self.left || self.right
    }
}