[−][src]Struct readme_sync::CodemapFiles
Storage for codemap and corresponding codemap files.
Implementations
impl CodemapFiles
[src]
pub fn new() -> Self
[src]
Creates a new codemap files storage.
pub fn codemap(&self) -> &CodeMap
[src]
Returns codemap.
pub fn files(&self) -> &HashMap<Arc<File>, Arc<File>>
[src]
Returns readme and documentation files.
pub fn file_docs(&self) -> &HashMap<Arc<FileDocs>, Arc<File>>
[src]
Returns parsed documentation collection.
pub fn get_or_insert_codemap_file(&mut self, file: &Arc<File>) -> &Arc<File>
[src]
Inserts the given file into the storage if it is not present, then returns a reference to the appropriate file from codemap.
pub fn get_or_insert_codemap_docs_file(
&mut self,
file_docs: &Arc<FileDocs>
) -> &Arc<File>
[src]
&mut self,
file_docs: &Arc<FileDocs>
) -> &Arc<File>
Inserts the given documentation into the storage if it is not present, then returns a reference to the appropriate file from codemap.
Trait Implementations
impl Debug for CodemapFiles
[src]
impl Default for CodemapFiles
[src]
pub fn default() -> CodemapFiles
[src]
Auto Trait Implementations
impl RefUnwindSafe for CodemapFiles
impl Send for CodemapFiles
impl Sync for CodemapFiles
impl Unpin for CodemapFiles
impl UnwindSafe for CodemapFiles
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,