Sebastian Thielmake fmt535e9674 years agoHistory
17 lines · 309 B · Rust
RawDownload
use std::borrow::Cow; use bstr::{BStr, ByteSlice}; type Result<T = ()> = std::result::Result<T, Box<dyn std::error::Error>>;fn b(s: &str) -> &bstr::BStr {    s.into()} pub fn cow_str(s: &str) -> Cow<'_, BStr> {    Cow::Borrowed(s.as_bytes().as_bstr())} mod boolean;mod color;mod integer;mod path;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t