#[non_exhaustive]pub enum ResourceKind {
Service,
Text,
Picture,
ChapterAnchors,
Landmarks,
Diagram,
Formula,
Unknown(u8),
}Expand description
What a resource holds, as declared by the resource table.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Service
One of the five fixed resources at the start of a file.
Text
A chapter.
Picture
A picture.
ChapterAnchors
The anchor table of the chapter that follows it.
Landmarks
The landmarks of the book.
Diagram
A diagram in Mermaid notation.
Formula
A formula in the notation of KaTeX.
Unknown(u8)
A kind defined by a later minor version of the format.
Trait Implementations§
Source§impl Clone for ResourceKind
impl Clone for ResourceKind
impl Copy for ResourceKind
Source§impl Debug for ResourceKind
impl Debug for ResourceKind
impl Eq for ResourceKind
Source§impl From<u8> for ResourceKind
impl From<u8> for ResourceKind
Source§impl Hash for ResourceKind
impl Hash for ResourceKind
Source§impl PartialEq for ResourceKind
impl PartialEq for ResourceKind
impl StructuralPartialEq for ResourceKind
Auto Trait Implementations§
impl Forget for ResourceKind
impl Freeze for ResourceKind
impl Move for ResourceKind
impl RefUnwindSafe for ResourceKind
impl Send for ResourceKind
impl Sync for ResourceKind
impl Unpin for ResourceKind
impl UnsafeUnpin for ResourceKind
impl UnwindSafe for ResourceKind
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