stringmetrics 2.2.2

Rust library for approximate string matching
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! This module includes errors used by this crate.

use std::fmt;

/// An error that arises when equal lengths are required but not found.
#[derive(Debug, Clone, Eq, PartialEq)]
pub struct LengthMismatchError;

impl fmt::Display for LengthMismatchError {
    #[inline]
    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
        write!(f, "items of equal length are required")
    }
}