# Struct bitflags::__core::str::CharRange [−] [src]

    pub struct CharRange {
        pub ch: char,
        pub next: usize,
    }

Unstable (`str_char`)

: existence of this struct is uncertain as it is frequently able to be replaced with char.len_utf8() and/or char/char_indices iterators

Struct that contains a `char` and the index of the first byte of the next `char` in a string. This can be used as a data structure for iterating over the UTF-8 bytes of a string.

## Fields

`ch` | Unstable (`str_char`) : existence of this struct is uncertain as it is frequently able to be replaced with char.len_utf8() and/or char/char_indices iterators Current `char`
`next` | Unstable (`str_char`) : existence of this struct is uncertain as it is frequently able to be replaced with char.len_utf8() and/or char/char_indices iterators Index of the first byte of the next `char`

## Trait Implementations

### Derived Implementations

### `impl Debug for CharRange`

#### `fn fmt(&self, __arg_0: &mut Formatter) -> Result<(), Error>`

Unstable (`str_char`)

: existence of this struct is uncertain as it is frequently able to be replaced with char.len_utf8() and/or char/char_indices iterators

### `impl Clone for CharRange`

#### `fn clone(&self) -> CharRange`

Unstable (`str_char`)

: existence of this struct is uncertain as it is frequently able to be replaced with char.len_utf8() and/or char/char_indices iterators

#### `fn clone_from(&mut self, source: &Self)`1.0.0

### `impl Copy for CharRange`

# Help

## Keyboard Shortcuts

?
  Show this help dialog
S
  Focus the search field
⇤
  Move up in search results
⇥
  Move down in search results
⏎
  Go to active search result

## Search Tricks

Prefix searches with a type followed by a colon (e.g. `fn:`) to restrict the search to a given type.

Accepted types are: `fn`, `mod`, `struct`, `enum`, `trait`, `type`, `macro`, and `const`.

Search functions by type signature (e.g. `vec -> usize` or `* -> vec`)