pub struct FileMagic {
pub kind: &'static str,
pub magic: &'static [u8],
}Expand description
A file-type magic signature: a kind label and the leading magic bytes.
Fields§
§kind: &'static str§magic: &'static [u8]Trait Implementations§
Auto Trait Implementations§
impl Freeze for FileMagic
impl RefUnwindSafe for FileMagic
impl Send for FileMagic
impl Sync for FileMagic
impl Unpin for FileMagic
impl UnsafeUnpin for FileMagic
impl UnwindSafe for FileMagic
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