pub trait SetAttrPropSpec<'a>: Sized {
// Required method
fn push_to_builder(self, builder: &mut AttrBuilder<'a>);
}Expand description
An abstract specification of the properties to write of one to many attributes, every
attribute being given what SetPropSpec takes for the properties of an object, see
DatabaseProxy::set_dev_attr_prop.
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 AttrBuilder<'a>)
fn push_to_builder(self, builder: &mut AttrBuilder<'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, S, const N: usize> SetAttrPropSpec<'a> for [(&'a str, S); N]where
S: SetPropSpec<'a>,
For an array of attributes.
impl<'a, S, const N: usize> SetAttrPropSpec<'a> for [(&'a str, S); N]where
S: SetPropSpec<'a>,
For an array of attributes.
fn push_to_builder(self, builder: &mut AttrBuilder<'a>)
Source§impl<'a, S> SetAttrPropSpec<'a> for (&'a str, S)where
S: SetPropSpec<'a>,
For the properties of a single attribute.
impl<'a, S> SetAttrPropSpec<'a> for (&'a str, S)where
S: SetPropSpec<'a>,
For the properties of a single attribute.
fn push_to_builder(self, builder: &mut AttrBuilder<'a>)
Source§impl<'a, S> SetAttrPropSpec<'a> for Vec<(&'a str, S)>where
S: SetPropSpec<'a>,
For a vector of attributes.
impl<'a, S> SetAttrPropSpec<'a> for Vec<(&'a str, S)>where
S: SetPropSpec<'a>,
For a vector of attributes.