pub struct Docs(String, Vec<RustLink>);
Tuple Fields§
§0: String
§1: Vec<RustLink>
Implementations§
source§impl Docs
impl Docs
pub fn from_attrs(attrs: &[Attribute]) -> Self
fn get_doc_lines(attrs: &[Attribute]) -> String
fn get_rust_link(attrs: &[Attribute]) -> Vec<RustLink>
pub fn is_empty(&self) -> bool
sourcepub fn to_markdown(
&self,
docs_url_gen: &DocsUrlGenerator,
style: MarkdownStyle,
) -> String
pub fn to_markdown( &self, docs_url_gen: &DocsUrlGenerator, style: MarkdownStyle, ) -> String
Convert to markdown
pub fn rust_links(&self) -> &[RustLink]
Trait Implementations§
source§impl<'de> Deserialize<'de> for Docs
impl<'de> Deserialize<'de> for Docs
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Docs
impl StructuralPartialEq for Docs
Auto Trait Implementations§
impl Freeze for Docs
impl RefUnwindSafe for Docs
impl Send for Docs
impl Sync for Docs
impl Unpin for Docs
impl UnwindSafe for Docs
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)