Skip to main content

ByteExt

Trait ByteExt 

Source
pub(crate) trait ByteExt {
    // Required methods
    fn is_sign(&self) -> bool;
    fn is_digit(&self) -> bool;
    fn is_hex_digit(&self) -> bool;
    fn is_space(&self) -> bool;
    fn is_ascii_ident(&self) -> bool;
}
Expand description

Extension methods for XML-subset only operations.

Required Methods§

Source

fn is_sign(&self) -> bool

Checks if a byte is a numeric sign.

Source

fn is_digit(&self) -> bool

Checks if a byte is a digit.

[0-9]

Source

fn is_hex_digit(&self) -> bool

Checks if a byte is a hex digit.

[0-9A-Fa-f]

Source

fn is_space(&self) -> bool

Checks if a byte is a space.

[ \r\n\t]

Source

fn is_ascii_ident(&self) -> bool

Checks if a byte is an ASCII ident char.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl ByteExt for u8

Implementors§