pub fn layer_set(&self) -> LayerSet<K, V> {
        let mut layers = Vec::new();
        {
            let data = self.data.read().unwrap();
            layers.push(data.mutable_layer.clone().as_layer().into());
            for layer in &data.layers {
                layers.push(layer.clone().into());
            }
        }
        LayerSet { layers, merge_fn: self.merge_fn }
    }
/// Returns a clone of the current set of layers (including the mutable layer), after which one
/// can get an iterator, although care should be taken because writes will blocked to the
/// mutable layer until the iterator is dropped.
Returns a clone of the current set of layers (including the mutable layer), after which one
can get an iterator, although care should be taken because writes will blocked to the
mutable layer until the iterator is dropped.
Returns a clone of the current set of layers ( including the mutable layer ) after which one can get an iterator although care should be taken because writes will blocked to the mutable layer until the iterator is dropped .
pub fn layer_set(&self) -> LayerSet<K, V> {
        let mut layers = Vec::new();
        {
            let data = self.data.read().unwrap();
            layers.push(data.mutable_layer.clone().as_layer().into());
            for layer in &data.layers {
                layers.push(layer.clone().into());
            }
        }
        LayerSet { layers, merge_fn: self.merge_fn }
    }
pub fn layer_set ( & self ) -> LayerSet < K , V > { let mut layers = Vec :: new ( ) ; { let data = self . data . read ( ) . unwrap ( ) ; layers . push ( data . mutable_layer . clone ( ) . as_layer ( ) . into ( ) ) ; for layer in & data . layers { layers . push ( layer . clone ( ) . into ( ) ) ; } } LayerSet { layers , merge_fn : self . merge_fn } }
Returns a clone of the current set of layers (including the mutable layer), after which one
can get an iterator, although care should be taken because writes will blocked to the
mutable layer until the iterator is dropped.
Returns a clone of the current set of layers ( including the mutable layer ) after which one can get an iterator although care should be taken because writes will blocked to the mutable layer until the iterator is dropped .
&self
&self