Struct cdoc::config::MarkdownFormat
source · pub struct MarkdownFormat {}Trait Implementations§
source§impl Clone for MarkdownFormat
impl Clone for MarkdownFormat
source§fn clone(&self) -> MarkdownFormat
fn clone(&self) -> MarkdownFormat
Returns a copy of the value. Read more
1.0.0 · 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 MarkdownFormat
impl Debug for MarkdownFormat
source§impl<'de> Deserialize<'de> for MarkdownFormat
impl<'de> Deserialize<'de> for MarkdownFormat
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 Format for MarkdownFormat
impl Format for MarkdownFormat
source§fn template_prefix(&self) -> &str
fn template_prefix(&self) -> &str
Template format name. Useful if templates are reused across formats as is the case for
notebooks which use markdown.
source§fn name(&self) -> &str
fn name(&self) -> &str
Format name that is used in status messages, build output and in the configuration file.
source§fn no_parse(&self) -> bool
fn no_parse(&self) -> bool
Return true if the format should not be parsed. This may be removed in the future and is
currently only used for the info format which exports all parsed contents in a project.
source§fn renderer(&self) -> Box<dyn DocumentRenderer>
fn renderer(&self) -> Box<dyn DocumentRenderer>
Return a renderer instance. Currently does not allow for configuration.
source§fn include_resources(&self) -> bool
fn include_resources(&self) -> bool
Determines whether non-source files should be copied to
fn layout(&self) -> Option<String>
Auto Trait Implementations§
impl RefUnwindSafe for MarkdownFormat
impl Send for MarkdownFormat
impl Sync for MarkdownFormat
impl Unpin for MarkdownFormat
impl UnwindSafe for MarkdownFormat
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> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T, R> RenderElement<Vec<R, Global>> for Twhere
T: RenderElement<R>,
impl<T, R> RenderElement<Vec<R, Global>> for Twhere T: RenderElement<R>,
source§fn render(
&mut self,
elem: &Vec<R, Global>,
ctx: &RenderContext<'_>,
buf: impl Write
) -> Result<(), Error>
fn render( &mut self, elem: &Vec<R, Global>, ctx: &RenderContext<'_>, buf: impl Write ) -> Result<(), Error>
Render the element to a buffer
source§fn render_inner(&mut self, elem: &T, ctx: &RenderContext<'_>) -> Result<String>
fn render_inner(&mut self, elem: &T, ctx: &RenderContext<'_>) -> Result<String>
Convenience function for creating a buffer, rendering the element into the buffer, and
returning the result as a string. This is useful when an inner element needs to be rendered
first to be used in an outer element, hence the name.
source§impl<T> Serialize for Twhere
T: Serialize + ?Sized,
impl<T> Serialize for Twhere T: Serialize + ?Sized,
fn erased_serialize(&self, serializer: &mut dyn Serializer) -> Result<Ok, Error>
source§impl<T> Variant for Twhere
T: Any + Clone + SendSync,
impl<T> Variant for Twhere T: Any + Clone + SendSync,
source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert this
Variant trait object to &mut dyn Any.source§fn as_boxed_any(self: Box<T, Global>) -> Box<dyn Any, Global>
fn as_boxed_any(self: Box<T, Global>) -> Box<dyn Any, Global>
Convert this
Variant trait object to Box<dyn Any>.