rusty-snake
rusty-snake
**Use case** - Have related/frequently used overlays next to each other, w/o scrolling **Proposed Solution** A way to reorder (custom) overlays instead of using creation order.
**Use case** - Show (colored) existing values on all elements selected for the overlay - e.g. select:`ways with highway` color:`surface` - Show data as missing for `!access or access ~...
Settings gear aperas on normal overlays.  **How to Reproduce** - Add custom overlays (more than fit on screen) - Open overlay menu - Scroll down - Scroll up -...
```rust impl ScmpSyscall { fn is_error(&self) -> bool { self.nr == libseccomp_sys::__NR_SCMP_ERROR } fn is_undef(&self) -> bool { self.nr == libseccomp_sys::__NR_SCMP_UNDEF } } ```
In addition to `From`/`Into` provide `ScmpSyscall::{from,as}_raw_syscall` methods. ```rust type RawSyscall = c_int; impl ScmpSyscall { fn from_raw_syscall(raw_syscall: RawSyscall) -> Self { Self::from_sys(nr) } fn as_raw_syscall(self) -> RawSyscall { self.nr }...
This issue tries to outline a solution to some of the problems of bitflags. There is plenty room for discussion right now. bitflag suffers from the fact that it hadn't...
Introduced by Linux 6.6. linux_raw requires linux-raw-sys >= 0.6.5.
See https://rust-lang.github.io/api-guidelines/interoperability.html#c-good-err I would recommend a type like the following: ```rust #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] struct ParseSysnoError { string: String, } impl fmt::Display for ParseSysnoError { fn...
Previous discussed in #41 but closed w/o result. https://doc.rust-lang.org/std/convert/trait.From.html says: > **Note: This trait must not fail.** The From trait is intended for perfect conversions. If the conversion can fail...
**Use case** Say you have an `tracktype` overlay and your coloring details are `!tracktype` (i.e. color by `tracktype` only, and auto-select it when editing tags). Second example is a `cycleway:surface`...