---
title: MimeIter
summary: An iterator of parsed mime
url: https://www.fastly.com/documentation/reference/compute/sdks/rust/fastly/mime/struct.MimeIter/
---

**Kind:** Struct  
**Module:** [mime](https://www.fastly.com/documentation/reference/compute/sdks/rust/fastly/mime/)  
**Package:** fastly 0.13.1

```rust
pub struct MimeIter<'a> { /* private fields */ }
```

An iterator of parsed mime

## Methods

### new

```rust
fn new(s: &'a str) -> Self
```

A new iterator over mimes or media types

**Parameters**

- `s`: `&str`

**Returns**

`Self`

## Trait implementations

### impl Clone for MimeIter

#### clone

```rust
fn clone(&self) -> Self
```

**Parameters**

- `self`: `&Self`

**Returns**

`Self`

### impl Debug for MimeIter

#### fmt

```rust
fn fmt(&self, f: &mut Formatter<'_>) -> Result
```

**Parameters**

- `self`: `&Self`
- `f`: `&mut $crate::fmt::Formatter`

**Returns**

`$crate::fmt::Result`

### impl Iterator for MimeIter

#### next

```rust
fn next(&mut self) -> Option<Self::Item>
```

**Parameters**

- `self`: `&mut Self`

**Returns**

`Option<Self::Item>`

## Auto trait implementations

- `Freeze`
- `RefUnwindSafe`
- `Send`
- `Sync`
- `Unpin`
- `UnsafeUnpin`
- `UnwindSafe`

## Blanket implementations

- `Any`
- `Borrow<T>`
- `BorrowMut<T>`
- `CloneToUninit`
- `From<T>`
- `Into<U>`
- `IntoIterator`
- `ToOwned`
- `TryFrom<U>`
- `TryInto<U>`
