[][src]Struct readme_sync::CodemapFiles

pub struct CodemapFiles { /* fields omitted */ }

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]

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]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.