Skip to main content

FromCommand

Trait FromCommand 

Source
pub trait FromCommand {
    // Required method
    fn from_command<S>(name: S) -> Option<Self>
       where Self: Sized,
             S: Into<String> + Copy;
}
Expand description

Add from_command trait to SemanticVersion

Required Methods§

Source

fn from_command<S>(name: S) -> Option<Self>
where Self: Sized, S: Into<String> + Copy,

Convert a command name to a SemanticVersion value

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§