pub struct MagicRule {
pub offset: usize,
pub bytes: &'static [u8],
pub format: FormatId,
}Expand description
A magic-byte rule. Detection matches these against a bounded prefix.
Fields§
§offset: usize§bytes: &'static [u8]§format: FormatIdTrait Implementations§
impl Copy for MagicRule
impl Eq for MagicRule
impl StructuralPartialEq for MagicRule
Auto Trait Implementations§
impl Freeze for MagicRule
impl RefUnwindSafe for MagicRule
impl Send for MagicRule
impl Sync for MagicRule
impl Unpin for MagicRule
impl UnsafeUnpin for MagicRule
impl UnwindSafe for MagicRule
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more