pub struct LocalArchive {
pub(crate) uri: ArchiveUri,
pub(crate) out_path: PathBuf,
pub(crate) source: Option<Box<str>>,
pub(crate) formats: SmallVec<SourceFormatId, 1>,
pub(crate) file_state: RwLock<SourceDir>,
pub ignore: IgnoreSource,
pub(crate) is_managed: OnceLock<Option<GitUrl>>,
}Fields§
§uri: ArchiveUri§out_path: PathBuf§source: Option<Box<str>>§formats: SmallVec<SourceFormatId, 1>§file_state: RwLock<SourceDir>§ignore: IgnoreSource§is_managed: OnceLock<Option<GitUrl>>Available on crate feature
git only.Implementations§
Source§impl LocalArchive
impl LocalArchive
pub fn document_of( &self, path: Option<&UriPath>, name: &UriName, ) -> Option<DocumentUri>
pub fn git_url(&self, on_host: &Url) -> Option<&GitUrl>
Available on crate feature
git only.pub fn state_summary(&self) -> FileStateSummary
pub fn source_dir(&self) -> PathBuf
Sourcepub fn manifest_of(p: &Path) -> Option<PathBuf>
pub fn manifest_of(p: &Path) -> Option<PathBuf>
blocks
pub(crate) fn out_dir_of(p: &Path) -> PathBufwhere
Self: Sized,
pub fn with_sources<R>(&self, f: impl FnOnce(&SourceDir) -> R) -> R
pub fn update_sources(&self)
Sourcepub fn rel_path_of(
&self,
path: Option<&UriPath>,
doc_name: &SimpleUriName,
language: Language,
) -> Option<PathBuf>
pub fn rel_path_of( &self, path: Option<&UriPath>, doc_name: &SimpleUriName, language: Language, ) -> Option<PathBuf>
blocks! removes File extension!
Trait Implementations§
Source§impl BuildableArchive for LocalArchive
impl BuildableArchive for LocalArchive
fn file_state(&self) -> FileStates
fn formats(&self) -> &[SourceFormatId]
fn get_log(&self, relative_path: &str, target: BuildTargetId) -> PathBuf
Source§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( &self, in_doc: &DocumentUri, rel_path: Option<&UriPath>, log: FileOrString, from: BuildTargetId, result: Option<Box<dyn Artifact>>, relational: &RDFStore, load: bool, ) -> Result<(), ArtifactSaveError>
Available on crate feature
rdf only.Source§fn save_triples(
&self,
in_doc: &DocumentUri,
rel_path: Option<&UriPath>,
relational: &RDFStore,
load: bool,
iter: Vec<Triple>,
)
fn save_triples( &self, in_doc: &DocumentUri, rel_path: Option<&UriPath>, relational: &RDFStore, load: bool, iter: Vec<Triple>, )
Available on crate feature
rdf only.fn escape_module_name(&self, in_path: &Path, name: &str) -> PathBuf
Source§impl Debug for LocalArchive
impl Debug for LocalArchive
Source§impl LocallyBuilt for LocalArchive
impl LocallyBuilt for LocalArchive
fn out_dir(&self) -> &Path
fn out_path_of( &self, path: Option<&UriPath>, doc_name: &SimpleUriName, rel_path: Option<&UriPath>, language: Language, ) -> PathBuf
fn document_file( &self, path: Option<&UriPath>, rel_path: Option<&UriPath>, doc_name: &SimpleUriName, language: Language, ) -> PathBuf
fn save_modules(&self, modules: &[Module]) -> Result<(), ArtifactSaveError>
Source§impl MathArchive for LocalArchive
impl MathArchive for LocalArchive
fn uri(&self) -> &ArchiveUri
fn path(&self) -> &Path
fn is_meta(&self) -> bool
Source§fn load_module(
&self,
path: Option<&UriPath>,
name: &UriName,
) -> Result<Module, BackendError>
fn load_module( &self, path: Option<&UriPath>, name: &UriName, ) -> Result<Module, BackendError>
Errors Read more
Source§fn load_module_async<A: AsyncEngine>(
&self,
path: Option<&UriPath>,
name: &UriName,
) -> impl Future<Output = Result<Module, BackendError>> + 'static + use<A>where
Self: Sized,
fn load_module_async<A: AsyncEngine>(
&self,
path: Option<&UriPath>,
name: &UriName,
) -> impl Future<Output = Result<Module, BackendError>> + 'static + use<A>where
Self: Sized,
Errors Read more
fn id(&self) -> &ArchiveId
Auto Trait Implementations§
impl !Freeze for LocalArchive
impl !RefUnwindSafe for LocalArchive
impl Send for LocalArchive
impl Sync for LocalArchive
impl Unpin for LocalArchive
impl UnsafeUnpin for LocalArchive
impl UnwindSafe for LocalArchive
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Converts
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Converts
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Converts
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Converts
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSend for T
impl<T> DowncastSend for T
§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<E, T, Request, Encoding> FromReq<Patch<Encoding>, Request, E> for Twhere
Request: Req<E> + Send + 'static,
Encoding: Decodes<T>,
E: FromServerFnError,
impl<E, T, Request, Encoding> FromReq<Patch<Encoding>, Request, E> for Twhere
Request: Req<E> + Send + 'static,
Encoding: Decodes<T>,
E: FromServerFnError,
§impl<E, T, Request, Encoding> FromReq<Post<Encoding>, Request, E> for Twhere
Request: Req<E> + Send + 'static,
Encoding: Decodes<T>,
E: FromServerFnError,
impl<E, T, Request, Encoding> FromReq<Post<Encoding>, Request, E> for Twhere
Request: Req<E> + Send + 'static,
Encoding: Decodes<T>,
E: FromServerFnError,
§impl<E, T, Request, Encoding> FromReq<Put<Encoding>, Request, E> for Twhere
Request: Req<E> + Send + 'static,
Encoding: Decodes<T>,
E: FromServerFnError,
impl<E, T, Request, Encoding> FromReq<Put<Encoding>, Request, E> for Twhere
Request: Req<E> + Send + 'static,
Encoding: Decodes<T>,
E: FromServerFnError,
§impl<E, Encoding, Response, T> FromRes<Patch<Encoding>, Response, E> for Twhere
Response: ClientRes<E> + Send,
Encoding: Decodes<T>,
E: FromServerFnError,
impl<E, Encoding, Response, T> FromRes<Patch<Encoding>, Response, E> for Twhere
Response: ClientRes<E> + Send,
Encoding: Decodes<T>,
E: FromServerFnError,
§impl<E, Encoding, Response, T> FromRes<Post<Encoding>, Response, E> for Twhere
Response: ClientRes<E> + Send,
Encoding: Decodes<T>,
E: FromServerFnError,
impl<E, Encoding, Response, T> FromRes<Post<Encoding>, Response, E> for Twhere
Response: ClientRes<E> + Send,
Encoding: Decodes<T>,
E: FromServerFnError,
§impl<E, Encoding, Response, T> FromRes<Put<Encoding>, Response, E> for Twhere
Response: ClientRes<E> + Send,
Encoding: Decodes<T>,
E: FromServerFnError,
impl<E, Encoding, Response, T> FromRes<Put<Encoding>, Response, E> for Twhere
Response: ClientRes<E> + Send,
Encoding: Decodes<T>,
E: FromServerFnError,
impl<T> Fruit for Twhere
T: Send + Downcast,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<ET, Err, A> IntoErr<ET, Err> for Awhere
ET: EngineTypes,
Err: From<A>,
impl<ET, Err, A> IntoErr<ET, Err> for Awhere
ET: EngineTypes,
Err: From<A>,
§impl<E, T, Encoding, Request> IntoReq<Patch<Encoding>, Request, E> for Twhere
Request: ClientReq<E>,
Encoding: Encodes<T>,
E: FromServerFnError,
impl<E, T, Encoding, Request> IntoReq<Patch<Encoding>, Request, E> for Twhere
Request: ClientReq<E>,
Encoding: Encodes<T>,
E: FromServerFnError,
§impl<E, T, Encoding, Request> IntoReq<Post<Encoding>, Request, E> for Twhere
Request: ClientReq<E>,
Encoding: Encodes<T>,
E: FromServerFnError,
impl<E, T, Encoding, Request> IntoReq<Post<Encoding>, Request, E> for Twhere
Request: ClientReq<E>,
Encoding: Encodes<T>,
E: FromServerFnError,
§impl<E, T, Encoding, Request> IntoReq<Put<Encoding>, Request, E> for Twhere
Request: ClientReq<E>,
Encoding: Encodes<T>,
E: FromServerFnError,
impl<E, T, Encoding, Request> IntoReq<Put<Encoding>, Request, E> for Twhere
Request: ClientReq<E>,
Encoding: Encodes<T>,
E: FromServerFnError,
§impl<E, Response, Encoding, T> IntoRes<Patch<Encoding>, Response, E> for T
impl<E, Response, Encoding, T> IntoRes<Patch<Encoding>, Response, E> for T
§impl<E, Response, Encoding, T> IntoRes<Post<Encoding>, Response, E> for T
impl<E, Response, Encoding, T> IntoRes<Post<Encoding>, Response, E> for T
§impl<E, Response, Encoding, T> IntoRes<Put<Encoding>, Response, E> for T
impl<E, Response, Encoding, T> IntoRes<Put<Encoding>, Response, E> for T
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
§impl<T> SerializableKey for T
impl<T> SerializableKey for T
§impl<T> StorageAccess<T> for T
impl<T> StorageAccess<T> for T
§fn as_borrowed(&self) -> &T
fn as_borrowed(&self) -> &T
Borrows the value.
§fn into_taken(self) -> T
fn into_taken(self) -> T
Takes the value.