pub enum PreferDocFrom {
Binary,
Library,
}
Expand description
Preferences from which file the documentation should be taken if both present.
Variants§
Binary
Take the documentation from the binary entry-point.
Most of the time, this file will be src/main.rs
.
Library
Take the documentation from the library entry-point.
Most of the time, this file will be src/lib.rs
.
Trait Implementations§
Source§impl Clone for PreferDocFrom
impl Clone for PreferDocFrom
Source§fn clone(&self) -> PreferDocFrom
fn clone(&self) -> PreferDocFrom
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for PreferDocFrom
impl Debug for PreferDocFrom
Source§impl FromStr for PreferDocFrom
impl FromStr for PreferDocFrom
Source§impl PartialEq for PreferDocFrom
impl PartialEq for PreferDocFrom
impl Copy for PreferDocFrom
impl Eq for PreferDocFrom
impl StructuralPartialEq for PreferDocFrom
Auto Trait Implementations§
impl Freeze for PreferDocFrom
impl RefUnwindSafe for PreferDocFrom
impl Send for PreferDocFrom
impl Sync for PreferDocFrom
impl Unpin for PreferDocFrom
impl UnwindSafe for PreferDocFrom
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