pub struct DocumentEntry {
pub source: SourcePath,
pub document: SourcePath,
pub module: SymbolId,
pub source_hash: ContentHash,
pub document_hash: ContentHash,
pub fragments: Vec<FragmentEntry>,
}Expand description
One document (one per source file).
Fields§
§source: SourcePathSource file.
document: SourcePathDocument path.
module: SymbolIdModule the source defines.
source_hash: ContentHashHash of the source the document was generated from.
document_hash: ContentHashHash of the document text.
fragments: Vec<FragmentEntry>Fragments in document order.
Trait Implementations§
Source§impl Clone for DocumentEntry
impl Clone for DocumentEntry
Source§impl Debug for DocumentEntry
impl Debug for DocumentEntry
Source§impl<'de> Deserialize<'de> for DocumentEntry
impl<'de> Deserialize<'de> for DocumentEntry
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for DocumentEntry
Source§impl PartialEq for DocumentEntry
impl PartialEq for DocumentEntry
Source§impl Serialize for DocumentEntry
impl Serialize for DocumentEntry
impl StructuralPartialEq for DocumentEntry
Auto Trait Implementations§
impl Freeze for DocumentEntry
impl RefUnwindSafe for DocumentEntry
impl Send for DocumentEntry
impl Sync for DocumentEntry
impl Unpin for DocumentEntry
impl UnsafeUnpin for DocumentEntry
impl UnwindSafe for DocumentEntry
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.