[−][src]Struct ppatch::Pattern
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]
T: From<u8> + Binary + PrimInt + Unsigned + Default + ShlAssign<u32> + PartialEq + PrimInt<FromStrRadixErr = ParseIntError> + BitOrAssign + BitAndAssign,
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]
T: PrimInt + ShrAssign<u8>,
impl<T> Debug for Pattern<T> where
T: Binary + PrimInt,
[src]
T: Binary + PrimInt,
impl<T> FromStr for Pattern<T> where
T: From<u8> + ShlAssign<u32> + BitOrAssign + BitAndAssign + PartialEq + PrimInt + Unsigned + Default + PrimInt<FromStrRadixErr = ParseIntError>,
[src]
T: From<u8> + ShlAssign<u32> + BitOrAssign + BitAndAssign + PartialEq + PrimInt + Unsigned + Default + PrimInt<FromStrRadixErr = ParseIntError>,
Auto Trait Implementations
impl<T> Send for Pattern<T> where
T: Send,
T: Send,
impl<T> Sync for Pattern<T> where
T: Sync,
T: Sync,
impl<T> Unpin for Pattern<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for Pattern<T> where
T: UnwindSafe,
T: UnwindSafe,
impl<T> RefUnwindSafe for Pattern<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,