Struct tpnote_lib::content::ContentRef
source · Expand description
Pointers belonging to the self referential struct Content.
Fields
header: &'a strSkip optional BOM and "---" in s until next "---".
When no --- is found, this is empty.
header is always trimmed.
body: &'a strSkip optional BOM and optional header and keep the rest.
Trait Implementations
sourceimpl<'a> Debug for ContentRef<'a>
impl<'a> Debug for ContentRef<'a>
sourceimpl<'a> Display for ContentRef<'a>
impl<'a> Display for ContentRef<'a>
Concatenates the header and the body and prints the content. This function is expensive as it involves copying the whole content.
sourceimpl<'a> PartialEq<ContentRef<'a>> for ContentRef<'a>
impl<'a> PartialEq<ContentRef<'a>> for ContentRef<'a>
sourcefn eq(&self, other: &ContentRef<'a>) -> bool
fn eq(&self, other: &ContentRef<'a>) -> bool
impl<'a> Eq for ContentRef<'a>
impl<'a> StructuralEq for ContentRef<'a>
impl<'a> StructuralPartialEq for ContentRef<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for ContentRef<'a>
impl<'a> Send for ContentRef<'a>
impl<'a> Sync for ContentRef<'a>
impl<'a> Unpin for ContentRef<'a>
impl<'a> UnwindSafe for ContentRef<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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 Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
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.