emstr 0.2.0

Helpers for working with string types for embedded devices
Documentation
1
2
3
4
5
6
7
8
9
10

/// Error type for string encoding
#[derive(Clone, Copy, PartialEq, Debug)]
#[cfg_attr(feature = "thiserror", derive(thiserror::Error))]
pub enum Error {
    #[cfg_attr(feature = "thiserror", error("buffer length"))]
    BufferLength,
    #[cfg_attr(feature = "thiserror", error("invalid utf8"))]
    InvalidUtf8,
}