Struct cargo_doc2readme::depinfo::DependencyInfo
source · [−]pub struct DependencyInfo(DependencyInfoImpl);
Tuple Fields
0: DependencyInfoImpl
Implementations
sourceimpl DependencyInfo
impl DependencyInfo
sourcepub fn markdown_version() -> u8
pub fn markdown_version() -> u8
Return the current markdown version. This is just an internal number to track changes to the markdown output, and does not correspond to any “official” markdown spec version.
pub fn new(template: &str, rustdoc: &str) -> Self
pub fn decode(data: String) -> Result<Self>
pub fn encode(&self) -> String
pub fn check_input(&self, template: &str, rustdoc: &str) -> bool
pub fn is_empty(&self) -> bool
pub fn add_dependency(
&mut self,
crate_name: String,
version: Option<Version>,
lib_name: String
)
pub fn check_outdated(&self) -> bool
pub fn check_dependency(
&self,
crate_name: &str,
req: Option<&VersionReq>,
lib_name: &str,
allow_missing: bool
) -> bool
Auto Trait Implementations
impl RefUnwindSafe for DependencyInfo
impl Send for DependencyInfo
impl Sync for DependencyInfo
impl Unpin for DependencyInfo
impl UnwindSafe for DependencyInfo
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more