Struct cobalt_config::Document
source · pub struct Document { /* private fields */ }
Implementations§
source§impl Document
impl Document
pub fn new(front: Frontmatter, content: KString) -> Self
pub fn parse(content: &str) -> Result<Self>
pub fn into_parts(self) -> (Frontmatter, KString)
Trait Implementations§
source§impl PartialEq for Document
impl PartialEq for Document
impl Eq for Document
impl StructuralPartialEq for Document
Auto Trait Implementations§
impl RefUnwindSafe for Document
impl Send for Document
impl Sync for Document
impl Unpin for Document
impl UnwindSafe for Document
Blanket Implementations§
source§impl<V> AdhocValue for V
impl<V> AdhocValue for V
source§fn clone_box(&self) -> Box<dyn AdhocValue>
fn clone_box(&self) -> Box<dyn AdhocValue>
Clone the value
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.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.