Trait PropertyInstanceSetter

Source
pub trait PropertyInstanceSetter: PropertyInstanceGetter {
    // Required methods
    fn set_checked<S: Into<String>>(&self, property_name: S, value: Value);
    fn set<S: Into<String>>(&self, property_name: S, value: Value);
    fn set_no_propagate_checked<S: Into<String>>(
        &self,
        property_name: S,
        value: Value,
    );
    fn set_no_propagate<S: Into<String>>(&self, property_name: S, value: Value);
    fn mutability<S: Into<String>>(
        &self,
        property_name: S,
    ) -> Option<Mutability>;
    fn set_mutability<S: Into<String>>(
        &self,
        property_name: S,
        mutability: Mutability,
    );
}

Required Methods§

Source

fn set_checked<S: Into<String>>(&self, property_name: S, value: Value)

Sets the value of the given property by name if the property is mutable.

Source

fn set<S: Into<String>>(&self, property_name: S, value: Value)

Sets the value of the given property by name

Source

fn set_no_propagate_checked<S: Into<String>>( &self, property_name: S, value: Value, )

Sets the value of the given property by name if the property is mutable. Sends the value down the stream.

Source

fn set_no_propagate<S: Into<String>>(&self, property_name: S, value: Value)

Sets the value of the given property by name. Sends the value down the stream.

Source

fn mutability<S: Into<String>>(&self, property_name: S) -> Option<Mutability>

Returns the mutability of the property by name.

Source

fn set_mutability<S: Into<String>>( &self, property_name: S, mutability: Mutability, )

Sets the mutability of the property by name.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§