Skip to main content

SetAttrPropSpec

Trait SetAttrPropSpec 

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

Source

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.

Source§

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.

Source§

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.

Source§

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

Implementors§