tabled

Trait ModifyObject

Source
pub trait ModifyObject: Object {
    // Provided method
    fn modify(self) -> Modify<Self> { ... }
}
Expand description

An utility trait for a different interface of Modify creation.

§Example

// 1st way to create modification container
let m = Modify::new(Cell(1, 1));
// 2nd way to create modification container
let m = Cell(1, 1).modify();

Provided Methods§

Source

fn modify(self) -> Modify<Self>

Returns a Modify container of Object

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§

Source§

impl<O> ModifyObject for O
where O: Object,