pub trait ToNamesSpec<T>: ToNames {
type Output;
// Required method
fn collect(entries: Vec<NamedResult<T>>) -> Result<Self::Output>;
}Expand description
Generic specification type used for command and attribute info, as there is no special processing to do on the resulted value! This is an extension to the ToNames, because this spec’s output only depends on the actual type of the names we give.
Supporting trait: it is only there to make this crate’s API easier to use, it is implemented for everything that API accepts and is not one to implement anywhere else.
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementations on Foreign Types§
Source§impl<T> ToNamesSpec<T> for &[&str]
impl<T> ToNamesSpec<T> for &[&str]
Source§impl<T> ToNamesSpec<T> for &str
One name, one entry: that entry is the output, and its failure is the output’s own
since there is no slot of its own to carry it in.
impl<T> ToNamesSpec<T> for &str
One name, one entry: that entry is the output, and its failure is the output’s own since there is no slot of its own to carry it in.