Trait synthez_core::field::Container[][src]

pub trait Container<V> {
    type Value;
    fn is_empty(&self) -> bool;
fn has(&self, value: &V) -> bool;
fn replace(&mut self, value: V) -> Option<V>; fn set(&mut self, value: V) { ... } }
Expand description

Container containing field values.

Associated Types

Type of values contained in this Container.

Required methods

Indicates whether this Container is empty (contains no values).

Indicates whether the provided value is present in this Container.

Replaces the value contained in this Container with the provided one, and returns the replaced one, if any.

Provided methods

Sets the provided value into this Container, dropping the previous one, if any.

Implementations on Foreign Types

Implementors