[][src]Struct readme_sync::FileDocs

pub struct FileDocs { /* fields omitted */ }

Parsed .rs file documentation.

Implementations

impl FileDocs[src]

pub fn from_file(
    file: Arc<File>,
    config: &Config<'_>
) -> Result<Self, FileDocsFromFileError>
[src]

Creates file documentations from the specified file with the specified features.

pub fn file(&self) -> &Arc<File>[src]

Returns file file.

pub fn docs(&self) -> &str[src]

Returns file docs.

pub fn remap(&self) -> &[TextRemap][src]

Returns file remap.

pub fn remap_to_file(&self, range: Range<usize>) -> Option<Range<usize>>[src]

Remaps range from parsed documentation to source file content.

Trait Implementations

impl Clone for FileDocs[src]

impl Debug for FileDocs[src]

impl Eq for FileDocs[src]

impl Hash for FileDocs[src]

impl PartialEq<FileDocs> for FileDocs[src]

impl StructuralEq for FileDocs[src]

impl StructuralPartialEq for FileDocs[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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.