[][src]Enum patternscan::PatternByte

pub enum PatternByte {
    Byte(u8),
    Any,
}

Represents a single byte in a search pattern.

Variants

Byte(u8)
Any

Trait Implementations

impl Eq for PatternByte[src]

impl FromStr for PatternByte[src]

type Err = Error

The associated error which can be returned from parsing.

pub fn from_str(s: &str) -> Result<Self, Error>[src]

Create an instance of PatternByte from a string.

This string should either be a hexadecimal byte, or a "?". Will return an error if the string is not a "?", or it cannot be converted into an 8-bit integer when interpreted as hexadecimal.

impl PartialEq<PatternByte> for PatternByte[src]

impl PartialEq<u8> for PatternByte[src]

impl StructuralEq for PatternByte[src]

impl StructuralPartialEq for PatternByte[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.