bwrap 0.1.0-beta2

A text-wrapping library.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Copyright (C) 2023 Michael Lee
//
// Licensed under the MIT License <LICENSE-MIT or
// https://opensource.org/license/mit> or the GNU General Public License,
// Version 3.0 or any later version <LICENSE-GPL or
// https://www.gnu.org/licenses/gpl-3.0.txt>, at your option.
//
// This file may not be copied, modified, or distributed except except in
// compliance with either of the licenses.
//

#[derive(Debug)]
pub enum WrapError {
    InsufficentBufferSize(usize, usize, usize),
    InvalidWidth,
}

pub type Result<T> = core::result::Result<T, WrapError>;