Skip to main content

SetPropSpec

Trait SetPropSpec 

Source
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§

Source

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.

Source§

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))
where A: IntoProp<'a>, B: IntoProp<'a>, C: IntoProp<'a>, D: IntoProp<'a>, E: IntoProp<'a>, F: IntoProp<'a>,

Source§

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))
where A: IntoProp<'a>, B: IntoProp<'a>, C: IntoProp<'a>, D: IntoProp<'a>, E: IntoProp<'a>,

Source§

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))
where A: IntoProp<'a>, B: IntoProp<'a>, C: IntoProp<'a>, D: IntoProp<'a>,

Source§

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))
where A: IntoProp<'a>, B: IntoProp<'a>, C: IntoProp<'a>,

Source§

fn push_to_builder(self, builder: &mut Builder<'a>)

Source§

impl<'a, A, B> SetPropSpec<'a> for ((&'a str, A), (&'a str, B))
where A: IntoProp<'a>, B: IntoProp<'a>,

Source§

fn push_to_builder(self, builder: &mut Builder<'a>)

Source§

impl<'a, A> SetPropSpec<'a> for ((&'a str, A),)
where A: IntoProp<'a>,

Source§

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.

Source§

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.

Source§

fn push_to_builder(self, builder: &mut Builder<'a>)

Implementors§