pub struct FsReviewCatalogue { /* private fields */ }Expand description
The reviews directory, read as a catalogue.
Holds the common dir rather than a RepoLayout, so the one call that can
fail happens at construction and every later read is infallible policy.
Implementations§
Source§impl FsReviewCatalogue
impl FsReviewCatalogue
pub fn new<L: RepoLayout>(layout: &L) -> Result<Self, EngineError>
Trait Implementations§
Source§impl ReviewCatalogue for FsReviewCatalogue
impl ReviewCatalogue for FsReviewCatalogue
fn filed_reviews(&self) -> Result<Vec<FiledReview>, EngineError>
Source§fn alias_of(&self, id: &str) -> Result<Option<String>, EngineError>
fn alias_of(&self, id: &str) -> Result<Option<String>, EngineError>
The review
id’s progress lives under the returned id instead.Source§fn file_alias(&self, from: &str, to: &str) -> Result<(), EngineError>
fn file_alias(&self, from: &str, to: &str) -> Result<(), EngineError>
Record that
from reads to’s progress. Permanent.Source§fn file_identity(
&self,
id: &str,
opened_as: &ReviewIdentity,
) -> Result<(), EngineError>
fn file_identity( &self, id: &str, opened_as: &ReviewIdentity, ) -> Result<(), EngineError>
Record what
id was opened as, which is what makes it adoptable.Auto Trait Implementations§
impl Freeze for FsReviewCatalogue
impl RefUnwindSafe for FsReviewCatalogue
impl Send for FsReviewCatalogue
impl Sync for FsReviewCatalogue
impl Unpin for FsReviewCatalogue
impl UnsafeUnpin for FsReviewCatalogue
impl UnwindSafe for FsReviewCatalogue
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