#[derive(Debug, Snafu)]
#[snafu(module)]
enum Error { Alpha }
By default, should that generate
mod error {
#![feature(coroutines, coroutine_trait)] | |
use snafu::prelude::*; | |
use std::{ | |
ops::{Coroutine, CoroutineState}, | |
pin::pin, | |
str, | |
}; | |
#[derive(Debug, Copy, Clone)] |
//! This crate provides types for UCD’s `Blocks.txt`. | |
pub struct Blocks { | |
ranges: Vec<(RangeInclusive<u32>, String)>, | |
} | |
impl Blocks { | |
pub fn block_of(&self, c: char) -> &str { | |
self.ranges | |
.binary_search_by(|(range, _)| { |
#[derive(Debug, Snafu)]
#[snafu(module)]
enum Error { Alpha }
By default, should that generate
mod error {
// This code was saved by an automated test for the Rust Playground |
// This code was saved by an automated test for the Rust Playground |
// This code was saved by an automated test for the Rust Playground |
// This code was saved by an automated test for the Rust Playground |
// This code was saved by an automated test for the Rust Playground |
// This code was saved by an automated test for the Rust Playground |
// This code was saved by an automated test for the Rust Playground |