pub struct McdDocument {
pub source_path: String,
pub blocks: Vec<DocumentBlock>,
}Expand description
Parsed MCD document with a canonical block stream.
Fields§
§source_path: StringSource Markdown path inside the package.
blocks: Vec<DocumentBlock>Blocks in source order.
Implementations§
Source§impl McdDocument
impl McdDocument
Sourcepub fn from_package(package: &McdPackage, manifest: &Manifest) -> Result<Self>
pub fn from_package(package: &McdPackage, manifest: &Manifest) -> Result<Self>
Parse the manifest entrypoint Markdown from a package.
Trait Implementations§
Source§impl Clone for McdDocument
impl Clone for McdDocument
Source§fn clone(&self) -> McdDocument
fn clone(&self) -> McdDocument
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 McdDocument
impl Debug for McdDocument
Source§impl<'de> Deserialize<'de> for McdDocument
impl<'de> Deserialize<'de> for McdDocument
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for McdDocument
impl PartialEq for McdDocument
Source§fn eq(&self, other: &McdDocument) -> bool
fn eq(&self, other: &McdDocument) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for McdDocument
impl Serialize for McdDocument
impl Eq for McdDocument
impl StructuralPartialEq for McdDocument
Auto Trait Implementations§
impl Freeze for McdDocument
impl RefUnwindSafe for McdDocument
impl Send for McdDocument
impl Sync for McdDocument
impl Unpin for McdDocument
impl UnsafeUnpin for McdDocument
impl UnwindSafe for McdDocument
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.