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>
Errors Read more
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<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> Instrument for T
impl<T> Instrument for T
ยงfn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
ยงfn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> 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 moreยง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> 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.