pub struct TypeStruct {
pub graph: DiGraph<String, u32>,
pub hash: FnvHashMap<String, NodeIndex>,
}Expand description
Information about currently loaded MIME types
The graph contains subclass relations between all given mimes.
(EX: application/json -> text/plain -> application/octet-stream)
This is a petgraph DiGraph, so you can walk the tree if needed.
The hash is a mapping between MIME types and nodes on the graph.
The root of the graph is “all/all”, so start traversing there unless
you need to jump to a particular node.
Fields§
§graph: DiGraph<String, u32>§hash: FnvHashMap<String, NodeIndex>Auto Trait Implementations§
impl Freeze for TypeStruct
impl RefUnwindSafe for TypeStruct
impl Send for TypeStruct
impl Sync for TypeStruct
impl Unpin for TypeStruct
impl UnwindSafe for TypeStruct
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