pub trait SetPropSpec<'a>: Sized {
// Required method
fn push_to_builder(self, builder: &mut Builder<'a>);
}Expand description
An abstract specification of single to many AttrWrite-like, which is used by the
DevProxy::write_attr in order to be very flexible.
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 Methods§
Sourcefn push_to_builder(self, builder: &mut Builder<'a>)
fn push_to_builder(self, builder: &mut Builder<'a>)
Make this write specification into the params for the set property command.
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<'a, 'aa: 'a, T> SetPropSpec<'a> for Vec<(&'aa str, T)>where
T: IntoProp<'a>,
For a vector of properties.
impl<'a, 'aa: 'a, T> SetPropSpec<'a> for Vec<(&'aa str, T)>where
T: IntoProp<'a>,
For a vector of properties.
fn push_to_builder(self, builder: &mut Builder<'a>)
Source§impl<'a, A, B, C, D, E, F> SetPropSpec<'a> for ((&'a str, A), (&'a str, B), (&'a str, C), (&'a str, D), (&'a str, E), (&'a str, F))
impl<'a, A, B, C, D, E, F> SetPropSpec<'a> for ((&'a str, A), (&'a str, B), (&'a str, C), (&'a str, D), (&'a str, E), (&'a str, F))
fn push_to_builder(self, builder: &mut Builder<'a>)
Source§impl<'a, A, B, C, D, E> SetPropSpec<'a> for ((&'a str, A), (&'a str, B), (&'a str, C), (&'a str, D), (&'a str, E))
impl<'a, A, B, C, D, E> SetPropSpec<'a> for ((&'a str, A), (&'a str, B), (&'a str, C), (&'a str, D), (&'a str, E))
fn push_to_builder(self, builder: &mut Builder<'a>)
Source§impl<'a, A, B, C, D> SetPropSpec<'a> for ((&'a str, A), (&'a str, B), (&'a str, C), (&'a str, D))
impl<'a, A, B, C, D> SetPropSpec<'a> for ((&'a str, A), (&'a str, B), (&'a str, C), (&'a str, D))
fn push_to_builder(self, builder: &mut Builder<'a>)
Source§impl<'a, A, B, C> SetPropSpec<'a> for ((&'a str, A), (&'a str, B), (&'a str, C))
impl<'a, A, B, C> SetPropSpec<'a> for ((&'a str, A), (&'a str, B), (&'a str, C))
fn push_to_builder(self, builder: &mut Builder<'a>)
Source§impl<'a, A, B> SetPropSpec<'a> for ((&'a str, A), (&'a str, B))
impl<'a, A, B> SetPropSpec<'a> for ((&'a str, A), (&'a str, B))
fn push_to_builder(self, builder: &mut Builder<'a>)
Source§impl<'a, A> SetPropSpec<'a> for ((&'a str, A),)where
A: IntoProp<'a>,
impl<'a, A> SetPropSpec<'a> for ((&'a str, A),)where
A: IntoProp<'a>,
fn push_to_builder(self, builder: &mut Builder<'a>)
Source§impl<'a, T, const N: usize> SetPropSpec<'a> for [(&'a str, T); N]where
T: IntoProp<'a>,
For a array of properties.
impl<'a, T, const N: usize> SetPropSpec<'a> for [(&'a str, T); N]where
T: IntoProp<'a>,
For a array of properties.
fn push_to_builder(self, builder: &mut Builder<'a>)
Source§impl<'a, T> SetPropSpec<'a> for (&'a str, T)where
T: IntoProp<'a>,
For a single property.
impl<'a, T> SetPropSpec<'a> for (&'a str, T)where
T: IntoProp<'a>,
For a single property.