pub trait CMakePositional<'t>: 't + Sized {
// Required method
fn positional<'tv>(
default_name: &'static [u8],
tokens: &'tv [Token<'t>],
has_keyword: bool,
) -> Result<(Self, &'tv [Token<'t>]), CommandParseError>;
// Provided methods
fn positional_complete<'tv>(
default_name: &'static [u8],
tokens: &'tv [Token<'t>],
has_keyword: bool,
) -> Result<(Self, &'tv [Token<'t>]), CommandParseError> { ... }
fn in_range<'tv>(
default_name: &'static [u8],
to: &'static [u8],
allow_empty: bool,
tokens: &'tv [Token<'t>],
has_keyword: bool,
) -> Result<(Self, &'tv [Token<'t>]), CommandParseError> { ... }
}
Required Methods§
fn positional<'tv>( default_name: &'static [u8], tokens: &'tv [Token<'t>], has_keyword: bool, ) -> Result<(Self, &'tv [Token<'t>]), CommandParseError>
Provided Methods§
fn positional_complete<'tv>( default_name: &'static [u8], tokens: &'tv [Token<'t>], has_keyword: bool, ) -> Result<(Self, &'tv [Token<'t>]), CommandParseError>
fn in_range<'tv>( default_name: &'static [u8], to: &'static [u8], allow_empty: bool, tokens: &'tv [Token<'t>], has_keyword: bool, ) -> Result<(Self, &'tv [Token<'t>]), CommandParseError>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.