pub enum HeaderForm<'a> {
Bracket {
fields: &'a str,
body: &'a str,
text: &'a str,
},
Frontmatter {
header: CardHeader,
body: &'a str,
text: &'a str,
},
}Variants§
Implementations§
Source§impl<'a> HeaderForm<'a>
impl<'a> HeaderForm<'a>
pub fn text(&self) -> &'a str
pub fn is_bracket(&self) -> bool
pub fn is_frontmatter(&self) -> bool
Trait Implementations§
Source§impl<'a> Clone for HeaderForm<'a>
impl<'a> Clone for HeaderForm<'a>
Source§fn clone(&self) -> HeaderForm<'a>
fn clone(&self) -> HeaderForm<'a>
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<'a> Debug for HeaderForm<'a>
impl<'a> Debug for HeaderForm<'a>
impl<'a> Eq for HeaderForm<'a>
Source§impl<'a> PartialEq for HeaderForm<'a>
impl<'a> PartialEq for HeaderForm<'a>
Source§fn eq(&self, other: &HeaderForm<'a>) -> bool
fn eq(&self, other: &HeaderForm<'a>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<'a> StructuralPartialEq for HeaderForm<'a>
Auto Trait Implementations§
impl<'a> Freeze for HeaderForm<'a>
impl<'a> RefUnwindSafe for HeaderForm<'a>
impl<'a> Send for HeaderForm<'a>
impl<'a> Sync for HeaderForm<'a>
impl<'a> Unpin for HeaderForm<'a>
impl<'a> UnsafeUnpin for HeaderForm<'a>
impl<'a> UnwindSafe for HeaderForm<'a>
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.