Skip to main content

SetObject

Trait SetObject 

Source
pub trait SetObject: Object {
    type SetArguments: Default;

    // Required methods
    fn new(create_id: Option<usize>) -> Self;
    fn create_id(&self) -> Option<String>;

    // Provided method
    fn set_id(&mut self, _id: Option<String>) { ... }
}

Required Associated Types§

Required Methods§

Source

fn new(create_id: Option<usize>) -> Self

Source

fn create_id(&self) -> Option<String>

Provided Methods§

Source

fn set_id(&mut self, _id: Option<String>)

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§