pub trait IntoSyntax<T = IriBuf, B = BlankIdBuf> {
// Required method
fn into_syntax(
self,
vocabulary: &impl Vocabulary<Iri = T, BlankId = B>,
) -> Result<Context, InvalidContextError>;
}Expand description
Conversion of a processed context back into its syntactic form.
Required Methods§
Sourcefn into_syntax(
self,
vocabulary: &impl Vocabulary<Iri = T, BlankId = B>,
) -> Result<Context, InvalidContextError>
fn into_syntax( self, vocabulary: &impl Vocabulary<Iri = T, BlankId = B>, ) -> Result<Context, InvalidContextError>
Consumes this value, returning the equivalent syntactic context. The given vocabulary must be the one the context was built with, so its IRI handles can be resolved back to actual IRIs.
§Errors
Returns an error when a term in the context cannot be represented in syntax form.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".