pub struct OutputFile {
pub path: String,
pub content: Vec<u8>,
}Expand description
One rendered output file (path relative to book root unless absolute).
Fields§
§path: StringOutput path relative to the mdBook root (or absolute when required).
content: Vec<u8>Rendered file content bytes (typically UTF-8 markdown).
Trait Implementations§
Source§impl Clone for OutputFile
impl Clone for OutputFile
Source§fn clone(&self) -> OutputFile
fn clone(&self) -> OutputFile
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OutputFile
impl Debug for OutputFile
impl Eq for OutputFile
Source§impl PartialEq for OutputFile
impl PartialEq for OutputFile
Source§fn eq(&self, other: &OutputFile) -> bool
fn eq(&self, other: &OutputFile) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for OutputFile
Auto Trait Implementations§
impl Freeze for OutputFile
impl RefUnwindSafe for OutputFile
impl Send for OutputFile
impl Sync for OutputFile
impl Unpin for OutputFile
impl UnsafeUnpin for OutputFile
impl UnwindSafe for OutputFile
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