pub struct ParsedMagic {
pub rules: Vec<MagicRule>,
/* private fields */
}Expand description
Result of parsing a text magic file.
Contains the top-level rule list with any name-declared subroutines
hoisted into a separate [name_table::NameTable] keyed by identifier.
The rule list preserves the original ordering of all non-Name top-level
rules, so strength-based sorting and evaluation semantics are unchanged
for magic files that do not use the name/use directive pair.
Fields§
§rules: Vec<MagicRule>Top-level rules after Name subroutines have been removed.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ParsedMagic
impl RefUnwindSafe for ParsedMagic
impl Send for ParsedMagic
impl Sync for ParsedMagic
impl Unpin for ParsedMagic
impl UnsafeUnpin for ParsedMagic
impl UnwindSafe for ParsedMagic
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