Update

Trait Update 

Source
pub trait Update {
    // Required method
    fn update(&mut self, other: &Self);
}
Expand description

A type that can copy non-None values from other instances of itself.

Required Methods§

Source

fn update(&mut self, other: &Self)

Update self with the value from other, if present.

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.

Implementations on Foreign Types§

Source§

impl<T: Clone> Update for Option<T>

Source§

fn update(&mut self, other: &Option<T>)

Implementors§