ByteStringLiteralE

Trait ByteStringLiteralE 

Source
pub trait ByteStringLiteralE:
    Eoi
    + WhiteSpaceE
    + IntLiteralE {
    // Required methods
    fn odd_hex_digits() -> Self;
    fn number_binary_digits() -> Self;
    fn expected_comma() -> Self;
    fn byte_out_of_bounds() -> Self;
    fn not_byte_string_literal() -> Self;
}
Expand description

A trait for error types that can represent errors occurring when parsing a byte string literal.

Required Methods§

Source

fn odd_hex_digits() -> Self

Create a value indicating that a hexdecimal byte string literal contains an odd number of digits.

Source

fn number_binary_digits() -> Self

Create a value indicating that a binary byte string literal contains a number of digits not divisible by eight.

Source

fn expected_comma() -> Self

Create a value indicating that the next input byte should be a ‘,’.

Source

fn byte_out_of_bounds() -> Self

Create a value indicating that a integer byte string literal contains a number that is not a u8.

Source

fn not_byte_string_literal() -> Self

Create a value indicating that the input does not contain (even the beginning of) a byte string literal.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§