Struct cobalt::cobalt_model::DocumentBuilder
[−]
[src]
pub struct DocumentBuilder<T: Front> { /* fields omitted */ }
Methods
impl<T: Front> DocumentBuilder<T>
[src]
fn new(front: T, content: String) -> Self
[src]
fn parts(self) -> (T, String)
[src]
fn parse(content: &str) -> Result<Self>
[src]
Trait Implementations
impl<T: Debug + Front> Debug for DocumentBuilder<T>
[src]
impl<T: Eq + Front> Eq for DocumentBuilder<T>
[src]
impl<T: PartialEq + Front> PartialEq for DocumentBuilder<T>
[src]
fn eq(&self, __arg_0: &DocumentBuilder<T>) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &DocumentBuilder<T>) -> bool
[src]
This method tests for !=
.
impl<T: Default + Front> Default for DocumentBuilder<T>
[src]
fn default() -> DocumentBuilder<T>
[src]
Returns the "default value" for a type. Read more
impl<T: Clone + Front> Clone for DocumentBuilder<T>
[src]
fn clone(&self) -> DocumentBuilder<T>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<T: Front> Display for DocumentBuilder<T>
[src]
fn fmt(&self, f: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl From<DocumentBuilder> for DocumentBuilder<FrontmatterBuilder>
[src]
fn from(doc: DocumentBuilder) -> Self
[src]
Performs the conversion.
impl From<DocumentBuilder> for DocumentBuilder<FrontmatterBuilder>
[src]
fn from(legacy: DocumentBuilder) -> Self
[src]
Performs the conversion.