pub enum ExecutableType {
Binary(String),
Lib(String),
Example(String),
}
Variants§
Implementations§
source§impl ExecutableType
impl ExecutableType
sourcepub fn executable(&self) -> Option<&str>
pub fn executable(&self) -> Option<&str>
Get the name of the executable if it is a binary or an example.
Trait Implementations§
source§impl Clone for ExecutableType
impl Clone for ExecutableType
source§fn clone(&self) -> ExecutableType
fn clone(&self) -> ExecutableType
Returns a copy 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 ExecutableType
impl Debug for ExecutableType
source§impl<'de> Deserialize<'de> for ExecutableType
impl<'de> Deserialize<'de> for ExecutableType
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
Auto Trait Implementations§
impl Freeze for ExecutableType
impl RefUnwindSafe for ExecutableType
impl Send for ExecutableType
impl Sync for ExecutableType
impl Unpin for ExecutableType
impl UnwindSafe for ExecutableType
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