CharSliceSearcher in alloc::str::pattern - Rust
Description: Associated type for `<&[char] as Pattern<'a>>::Searcher`.
Keywords: rust, rustlang, rust-lang, CharSliceSearcher

# Struct alloc::str::pattern::CharSliceSearcher
[−][src]

    pub struct CharSliceSearcher<'a, 'b>(_);

🔬 This is a nightly-only experimental API. (`pattern` #27721)

API not fully fleshed out and ready to be stabilized

Expand description

Associated type for `<&[char] as Pattern<'a>>::Searcher`.

## Trait Implementations

[src]

### impl<'a, 'b> Clone for CharSliceSearcher<'a, 'b>

[src]

#### pub fn clone(&self) -> CharSliceSearcher<'a, 'b>

Returns a copy of the value. Read more

1.0.0[src]

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

Performs copy-assignment from `source`. Read more

[src]

### impl<'a, 'b> Debug for CharSliceSearcher<'a, 'b>

[src]

#### pub fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more

[src]

### impl<'a, 'b> ReverseSearcher<'a> for CharSliceSearcher<'a, 'b>

[src]

#### pub fn next_back(&mut self) -> SearchStep

🔬 This is a nightly-only experimental API. (`pattern` #27721)

API not fully fleshed out and ready to be stabilized

Performs the next search step starting from the back. Read more

[src]

#### pub fn next_match_back(&mut self) -> Option<(usize, usize)>

🔬 This is a nightly-only experimental API. (`pattern` #27721)

API not fully fleshed out and ready to be stabilized

Finds the next `Match` result. See `next_back()`. Read more

[src]

#### pub fn next_reject_back(&mut self) -> Option<(usize, usize)>

🔬 This is a nightly-only experimental API. (`pattern` #27721)

API not fully fleshed out and ready to be stabilized

Finds the next `Reject` result. See `next_back()`. Read more

[src]

### impl<'a, 'b> Searcher<'a> for CharSliceSearcher<'a, 'b>

[src]

#### pub fn haystack(&self) -> &'a str

🔬 This is a nightly-only experimental API. (`pattern` #27721)

API not fully fleshed out and ready to be stabilized

Getter for the underlying string to be searched in Read more

[src]

#### pub fn next(&mut self) -> SearchStep

🔬 This is a nightly-only experimental API. (`pattern` #27721)

API not fully fleshed out and ready to be stabilized

Performs the next search step starting from the front. Read more

[src]

#### pub fn next_match(&mut self) -> Option<(usize, usize)>

🔬 This is a nightly-only experimental API. (`pattern` #27721)

API not fully fleshed out and ready to be stabilized

Finds the next `Match` result. See `next()`. Read more

[src]

#### pub fn next_reject(&mut self) -> Option<(usize, usize)>

🔬 This is a nightly-only experimental API. (`pattern` #27721)

API not fully fleshed out and ready to be stabilized

Finds the next `Reject` result. See `next()` and `next_match()`. Read more

[src]

### impl<'a, 'b> DoubleEndedSearcher<'a> for CharSliceSearcher<'a, 'b>

## Auto Trait Implementations

### impl<'a, 'b> RefUnwindSafe for CharSliceSearcher<'a, 'b>

### impl<'a, 'b> Send for CharSliceSearcher<'a, 'b>

### impl<'a, 'b> Sync for CharSliceSearcher<'a, 'b>

### impl<'a, 'b> Unpin for CharSliceSearcher<'a, 'b>

### impl<'a, 'b> UnwindSafe for CharSliceSearcher<'a, 'b>

## Blanket Implementations

[src]

### impl<T> Any for T where
T: 'static + ?Sized,

[src]

#### pub fn type_id(&self) -> TypeId

Gets the `TypeId` of `self`. Read more

[src]

### impl<T> Borrow<T> for T where
T: ?Sized,

[src]

#### pub fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more

[src]

### impl<T> BorrowMut<T> for T where
T: ?Sized,

[src]

#### pub fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more

[src]

### impl<T> From<T> for T

[src]

#### pub fn from(t: T) -> T

Performs the conversion.

[src]

### impl<T, U> Into<U> for T where
U: From<T>,

[src]

#### pub fn into(self) -> U

Performs the conversion.

[src]

### impl<T> ToOwned for T where
T: Clone,

#### type Owned = T

The resulting type after obtaining ownership.

[src]

#### pub fn to_owned(&Self) -> T

Creates owned data from borrowed data, usually by cloning. Read more

[src]

#### pub fn clone_into(&Self, &mut T)

🔬 This is a nightly-only experimental API. (`toowned_clone_into` #41263)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

[src]

### impl<T, U> TryFrom<U> for T where
U: Into<T>,

#### type Error = Infallible

The type returned in the event of a conversion error.

[src]

#### pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.

[src]

### impl<T, U> TryInto<U> for T where
U: TryFrom<T>,

#### type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

[src]

#### pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.