pub struct TextChunk {
pub index: usize,
pub text: String,
pub heading: Option<String>,
}Expand description
One chunk of a document.
Fields§
§index: usizePosition of the chunk in the document (0-based).
text: String§heading: Option<String>Heading path, e.g. Guide > Install, when the chunk is under a Markdown heading.
Trait Implementations§
impl Eq for TextChunk
impl StructuralPartialEq for TextChunk
Auto Trait Implementations§
impl Forget for TextChunk
impl Freeze for TextChunk
impl Move for TextChunk
impl RefUnwindSafe for TextChunk
impl Send for TextChunk
impl Sync for TextChunk
impl Unpin for TextChunk
impl UnsafeUnpin for TextChunk
impl UnwindSafe for TextChunk
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.