Enum cargo_rx::ExampleType
source · [−]pub enum ExampleType {
Simple,
MultiFile,
Custom,
}Expand description
Represents the type of an example file.
Variants
Simple
This represents a simple example file, for ex. a hello_world.rs
file in an examples/ folder.
MultiFile
This represents a main.rs file nested within a sub-folder in an
examples/ folder; the Rust book also calls this a multi-file
example.
Custom
This represents an example file with a custom path defined in the
Cargo.toml file of a Cargo project.
Trait Implementations
sourceimpl Debug for ExampleType
impl Debug for ExampleType
sourceimpl Hash for ExampleType
impl Hash for ExampleType
sourceimpl PartialEq<ExampleType> for ExampleType
impl PartialEq<ExampleType> for ExampleType
impl Eq for ExampleType
impl StructuralEq for ExampleType
impl StructuralPartialEq for ExampleType
Auto Trait Implementations
impl RefUnwindSafe for ExampleType
impl Send for ExampleType
impl Sync for ExampleType
impl Unpin for ExampleType
impl UnwindSafe for ExampleType
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.