pub trait BuildableArchive: MathArchive {
// Required methods
fn file_state(&self) -> FileStates;
fn formats(&self) -> &[SourceFormatId];
fn get_log(&self, relative_path: &str, target: BuildTargetId) -> PathBuf;
fn save(
&self,
in_doc: &DocumentUri,
rel_path: Option<&UriPath>,
log: FileOrString,
from: BuildTargetId,
result: Option<Box<dyn Artifact>>,
relational: &RDFStore,
load: bool,
) -> Result<(), ArtifactSaveError>;
fn save_triples(
&self,
in_doc: &DocumentUri,
rel_path: Option<&UriPath>,
relational: &RDFStore,
load: bool,
iter: Vec<Triple>,
);
}Required Methods§
fn file_state(&self) -> FileStates
fn formats(&self) -> &[SourceFormatId]
fn get_log(&self, relative_path: &str, target: BuildTargetId) -> PathBuf
Sourcefn save(
&self,
in_doc: &DocumentUri,
rel_path: Option<&UriPath>,
log: FileOrString,
from: BuildTargetId,
result: Option<Box<dyn Artifact>>,
relational: &RDFStore,
load: bool,
) -> Result<(), ArtifactSaveError>
fn save( &self, in_doc: &DocumentUri, rel_path: Option<&UriPath>, log: FileOrString, from: BuildTargetId, result: Option<Box<dyn Artifact>>, relational: &RDFStore, load: bool, ) -> Result<(), ArtifactSaveError>
§Errors
fn save_triples( &self, in_doc: &DocumentUri, rel_path: Option<&UriPath>, relational: &RDFStore, load: bool, iter: Vec<Triple>, )
Available on crate feature
rdf only.