Enum doc_chunks::chunk::ContentOrigin
source · [−]pub enum ContentOrigin {
CargoManifestDescription(PathBuf),
CommonMarkFile(PathBuf),
RustDocTest(PathBuf, Span),
RustSourceFile(PathBuf),
TestEntityRust,
TestEntityCommonMark,
}Expand description
Definition of the source of a checkable chunk
Variants
CargoManifestDescription(PathBuf)
A Cargo.toml manifest that contains a description field.
CommonMarkFile(PathBuf)
A common mark file at given path.
RustDocTest(PathBuf, Span)
A rustdoc comment, part of file reference by path in span.
RustSourceFile(PathBuf)
Full rust source file.
TestEntityRust
A test entity for a rust file, with no meaning outside of test.
TestEntityCommonMark
A test entity for a cmark file, with no meaning outside of test.
Implementations
sourceimpl ContentOrigin
impl ContentOrigin
Trait Implementations
sourceimpl Clone for ContentOrigin
impl Clone for ContentOrigin
sourcefn clone(&self) -> ContentOrigin
fn clone(&self) -> ContentOrigin
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for ContentOrigin
impl Debug for ContentOrigin
sourceimpl Display for ContentOrigin
impl Display for ContentOrigin
sourceimpl Hash for ContentOrigin
impl Hash for ContentOrigin
sourceimpl PartialEq<ContentOrigin> for ContentOrigin
impl PartialEq<ContentOrigin> for ContentOrigin
sourcefn eq(&self, other: &ContentOrigin) -> bool
fn eq(&self, other: &ContentOrigin) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &ContentOrigin) -> bool
fn ne(&self, other: &ContentOrigin) -> bool
This method tests for !=.
impl Eq for ContentOrigin
impl StructuralEq for ContentOrigin
impl StructuralPartialEq for ContentOrigin
Auto Trait Implementations
impl RefUnwindSafe for ContentOrigin
impl Send for ContentOrigin
impl Sync for ContentOrigin
impl Unpin for ContentOrigin
impl UnwindSafe for ContentOrigin
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
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key and return true if they are equal.
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more