Trait CustomFn

Source
trait CustomFn {
    // Required methods
    fn equal(&self, other: &[u8]) -> bool;
    fn get_ws2_string(&self, encoding: Encoding) -> Result<Ws2String>;
}
Available on crate feature will-plus only.

Required Methods§

Source

fn equal(&self, other: &[u8]) -> bool

check if the current reader’s position matches the given byte slice 0xFF in the slice is treated as a wildcard that matches any byte

Source

fn get_ws2_string(&self, encoding: Encoding) -> Result<Ws2String>

Reads a string from the current position, decodes it using the specified encoding,

Implementors§