pub struct MemoryEvidence { /* private fields */ }Expand description
Something that backs an entry up.
Evidence is what turns a claim into one a reader can check. It is kept beside the entry rather than inside it because the claim and the proof of it are read at different times and by different readers: a summary is skimmed, a proof is opened only when the summary is doubted.
Implementations§
Source§impl MemoryEvidence
impl MemoryEvidence
pub fn new( label: impl Into<String>, source_id: Option<String>, detail: Attributes, ) -> Result<Self, DomainError>
pub fn label(&self) -> &str
Sourcepub fn source_id(&self) -> Option<&str>
pub fn source_id(&self) -> Option<&str>
Where it came from, when the engine knows. Absent evidence is still evidence — a person can attach what they saw without the engine having a name for the place they saw it.
pub fn detail(&self) -> &Attributes
Trait Implementations§
Source§impl Clone for MemoryEvidence
impl Clone for MemoryEvidence
Source§impl Debug for MemoryEvidence
impl Debug for MemoryEvidence
Source§impl<'de> Deserialize<'de> for MemoryEvidence
impl<'de> Deserialize<'de> for MemoryEvidence
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 MemoryEvidence
Source§impl PartialEq for MemoryEvidence
impl PartialEq for MemoryEvidence
Source§impl Serialize for MemoryEvidence
impl Serialize for MemoryEvidence
impl StructuralPartialEq for MemoryEvidence
Auto Trait Implementations§
impl Freeze for MemoryEvidence
impl RefUnwindSafe for MemoryEvidence
impl Send for MemoryEvidence
impl Sync for MemoryEvidence
impl Unpin for MemoryEvidence
impl UnsafeUnpin for MemoryEvidence
impl UnwindSafe for MemoryEvidence
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