pub trait LiteralTermAccess: EntailmentTerms {
type Reader<'a>: LiteralReader<Error = Self::Error>
where Self: 'a;
// Required method
fn open_literal<'a>(
&'a self,
term: &Self::Term,
) -> impl Future<Output = Result<Option<Self::Reader<'a>>, Self::Error>> + Send;
}Expand description
Asynchronous access to one exact literal’s metadata and streamed payload.
Reuse the immutable identity/structural accessor used by occurrence traversal. Reader payloads may borrow it or use independent backend handles; never clone a whole lexical form or hydrate all literals. Preserve exact language/direction identity and reject unsupported term extensions at the admission boundary.
Required Associated Types§
Sourcetype Reader<'a>: LiteralReader<Error = Self::Error>where
Self: 'a,
type Reader<'a>: LiteralReader<Error = Self::Error>where
Self: 'a,
Reader may borrow metadata/payload handles for the immutable accessor lifetime.
Required Methods§
Sourcefn open_literal<'a>(
&'a self,
term: &Self::Term,
) -> impl Future<Output = Result<Option<Self::Reader<'a>>, Self::Error>> + Send
fn open_literal<'a>( &'a self, term: &Self::Term, ) -> impl Future<Output = Result<Option<Self::Reader<'a>>, Self::Error>> + Send
Return a reader for a literal and None only for a supported nonliteral.
Cache misses must load authoritative classification/metadata or fail;
they must never become None. Opening must not buffer the lexical value.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".