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§
Sourcefn odd_hex_digits() -> Self
fn odd_hex_digits() -> Self
Create a value indicating that a hexdecimal byte string literal contains an odd number of digits.
Sourcefn number_binary_digits() -> Self
fn number_binary_digits() -> Self
Create a value indicating that a binary byte string literal contains a number of digits not divisible by eight.
Sourcefn expected_comma() -> Self
fn expected_comma() -> Self
Create a value indicating that the next input byte should be a ‘,’.
Sourcefn byte_out_of_bounds() -> Self
fn byte_out_of_bounds() -> Self
Create a value indicating that a integer byte string literal contains a number that is not a u8.
Sourcefn not_byte_string_literal() -> Self
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.