fn val_pos(&mut self, value: Tile_Value) -> usize {
        self.layer
            .get_values()
            .iter()
            .position(|v| *v == value)
            .unwrap_or_else(|| {
                self.layer.mut_values().push(value);
                self.layer.get_values().len() - 1
            })
    }
/// Get position of a value in the layer values.  If the value is not found,
/// it is added as the last value.
Get position of a value in the layer values.  If the value is not found,
it is added as the last value.
Get position of a value in the layer values . If the value is not found it is added as the last value .
fn val_pos(&mut self, value: Tile_Value) -> usize {
        self.layer
            .get_values()
            .iter()
            .position(|v| *v == value)
            .unwrap_or_else(|| {
                self.layer.mut_values().push(value);
                self.layer.get_values().len() - 1
            })
    }
fn val_pos ( & mut self , value : Tile_Value ) -> usize { self . layer . get_values ( ) . iter ( ) . position ( | v | * v == value ) . unwrap_or_else ( | | { self . layer . mut_values ( ) . push ( value ) ; self . layer . get_values ( ) . len ( ) - 1 } ) }
Get position of a value in the layer values.
Get position of a value in the layer values .
&mut self
value
Tile_Value