pub trait GetPropSpec<Names> {
type Output;
// Required method
fn collect(props: &mut PropReply) -> Result<Self::Output>;
}Expand description
A trait for property specifiers, which allows a great flexibility in how
DatabaseProxy::get_dev_prop works.
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<'name, A, B, C, D, E, F> GetPropSpec<(&'name str, &'name str, &'name str, &'name str, &'name str, &'name str)> for (A, B, C, D, E, F)
impl<'name, A, B, C, D, E, F> GetPropSpec<(&'name str, &'name str, &'name str, &'name str, &'name str, &'name str)> for (A, B, C, D, E, F)
Source§impl<'name, A, B, C, D, E> GetPropSpec<(&'name str, &'name str, &'name str, &'name str, &'name str)> for (A, B, C, D, E)
impl<'name, A, B, C, D, E> GetPropSpec<(&'name str, &'name str, &'name str, &'name str, &'name str)> for (A, B, C, D, E)
Source§impl<'name, A, B, C, D> GetPropSpec<(&'name str, &'name str, &'name str, &'name str)> for (A, B, C, D)
impl<'name, A, B, C, D> GetPropSpec<(&'name str, &'name str, &'name str, &'name str)> for (A, B, C, D)
Implementors§
Source§impl<T> GetPropSpec<&[&str]> for Twhere
T: FromProp,
impl<T> GetPropSpec<&[&str]> for Twhere
T: FromProp,
Source§impl<T> GetPropSpec<&str> for Twhere
T: FromProp,
One name, one property: that property 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> GetPropSpec<&str> for Twhere
T: FromProp,
One name, one property: that property is the output, and its failure is the output’s own since there is no slot of its own to carry it in.