[][src]Struct ppatch::Pattern

pub struct Pattern<T> { /* fields omitted */ }

Pattern is a container of MaskedBytes.

Methods

impl<T> Pattern<T> where
    T: From<u8> + Binary + PrimInt + Unsigned + Default + ShlAssign<u32> + PartialEq + PrimInt<FromStrRadixErr = ParseIntError> + BitOrAssign + BitAndAssign
[src]

pub fn new() -> Self[src]

pub fn get(&self, index: usize) -> Option<&MaskedByte<T>>[src]

pub fn len(&self) -> usize[src]

pub fn is_empty(&self) -> bool[src]

pub fn replace(&self, data: Vec<T>) -> Result<Vec<T>>[src]

Trait Implementations

impl<T: Default> Default for Pattern<T>[src]

impl<T> Display for Pattern<T> where
    T: PrimInt + ShrAssign<u8>, 
[src]

impl<T> Debug for Pattern<T> where
    T: Binary + PrimInt
[src]

impl<T> FromStr for Pattern<T> where
    T: From<u8> + ShlAssign<u32> + BitOrAssign + BitAndAssign + PartialEq + PrimInt + Unsigned + Default + PrimInt<FromStrRadixErr = ParseIntError>, 
[src]

type Err = Error

The associated error which can be returned from parsing.

fn from_str(string: &str) -> Result<Self, Self::Err>[src]

Input is a list of MaskedBytes separated with whitespace

Auto Trait Implementations

impl<T> Send for Pattern<T> where
    T: Send

impl<T> Sync for Pattern<T> where
    T: Sync

impl<T> Unpin for Pattern<T> where
    T: Unpin

impl<T> UnwindSafe for Pattern<T> where
    T: UnwindSafe

impl<T> RefUnwindSafe for Pattern<T> where
    T: RefUnwindSafe

Blanket Implementations

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

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

impl<T> ToString for T where
    T: Display + ?Sized
[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.

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

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

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