SerializableExt

Trait SerializableExt 

Source
pub trait SerializableExt: IsA<Serializable> + 'static {
    // Provided methods
    fn default_deserialize_property(
        &self,
        property_name: &str,
        value: &mut Value,
        pspec: impl AsRef<ParamSpec>,
        property_node: &Node,
    ) -> bool { ... }
    fn default_serialize_property(
        &self,
        property_name: &str,
        value: &Value,
        pspec: impl AsRef<ParamSpec>,
    ) -> Option<Node> { ... }
    fn deserialize_property(
        &self,
        property_name: &str,
        pspec: impl AsRef<ParamSpec>,
        property_node: &Node,
    ) -> Option<Value> { ... }
    fn find_property(&self, name: &str) -> Option<ParamSpec> { ... }
    fn property(&self, pspec: impl AsRef<ParamSpec>) -> Value { ... }
    fn list_properties(&self) -> Vec<ParamSpec> { ... }
    fn serialize_property(
        &self,
        property_name: &str,
        value: &Value,
        pspec: impl AsRef<ParamSpec>,
    ) -> Option<Node> { ... }
    fn set_property(&self, pspec: impl AsRef<ParamSpec>, value: &Value) { ... }
}

Provided Methods§

Source

fn default_deserialize_property( &self, property_name: &str, value: &mut Value, pspec: impl AsRef<ParamSpec>, property_node: &Node, ) -> bool

Source

fn default_serialize_property( &self, property_name: &str, value: &Value, pspec: impl AsRef<ParamSpec>, ) -> Option<Node>

Source

fn deserialize_property( &self, property_name: &str, pspec: impl AsRef<ParamSpec>, property_node: &Node, ) -> Option<Value>

Source

fn find_property(&self, name: &str) -> Option<ParamSpec>

Source

fn property(&self, pspec: impl AsRef<ParamSpec>) -> Value

Source

fn list_properties(&self) -> Vec<ParamSpec>

Source

fn serialize_property( &self, property_name: &str, value: &Value, pspec: impl AsRef<ParamSpec>, ) -> Option<Node>

Source

fn set_property(&self, pspec: impl AsRef<ParamSpec>, value: &Value)

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§