Struct cobalt_config::Document
source · [−]pub struct Document { /* private fields */ }
Implementations
sourceimpl 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
sourceimpl PartialEq<Document> for Document
impl PartialEq<Document> for Document
impl Eq for Document
impl StructuralEq 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
sourceimpl<V> AdhocValue for V where
V: 'static + Clone + Display + Debug + Send + Sync,
impl<V> AdhocValue for V where
V: 'static + Clone + Display + Debug + Send + Sync,
sourcefn clone_box(&self) -> Box<dyn AdhocValue + 'static, Global>
fn clone_box(&self) -> Box<dyn AdhocValue + 'static, Global>
Clone the value
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.