slice::split_first
pub const fn split_first(&self) -> Option<(&T, &[T])>
- Kind
- method
- Module
std::primitive- Since
- 1.5.0
Source: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
The entries of std::primitive in the Rust reference. This page has 2,707 cards.
pub const fn split_first(&self) -> Option<(&T, &[T])>
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn split_first_chunk<const N: usize>(&self) -> Option<(&[T; N], &[T])>
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn split_first_chunk_mut<const N: usize>( &mut self, ) -> Option<(&mut [T; N], &mut [T])>
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn split_first_mut(&mut self) -> Option<(&mut T, &mut [T])>
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn split_inclusive<F>(&self, pred: F) -> SplitInclusive<'_, T, F> where F: FnMut(&T) -> bool
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn split_inclusive_mut<F>(&mut self, pred: F) -> SplitInclusiveMut<'_, T, F> where F: FnMut(&T) -> bool
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn split_last(&self) -> Option<(&T, &[T])>
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn split_last_chunk<const N: usize>(&self) -> Option<(&[T], &[T; N])>
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn split_last_chunk_mut<const N: usize>( &mut self, ) -> Option<(&mut [T], &mut [T; N])>
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn split_last_mut(&mut self) -> Option<(&mut T, &mut [T])>
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn split_mut<F>(&mut self, pred: F) -> SplitMut<'_, T, F> where F: FnMut(&T) -> bool
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn split_off<'a, R>(self: &mut &'a [T], range: R) -> Option<&'a [T]> where R: OneSidedRange<usize>
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn split_off_first<'a>(self: &mut &'a [T]) -> Option<&'a T>
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn split_off_first_mut<'a>(self: &mut &'a mut [T]) -> Option<&'a mut T>
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn split_off_last<'a>(self: &mut &'a [T]) -> Option<&'a T>
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn split_off_last_mut<'a>(self: &mut &'a mut [T]) -> Option<&'a mut T>
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn split_off_mut<'a, R>( self: &mut &'a mut [T], range: R, ) -> Option<&'a mut [T]> where R: OneSidedRange<usize>
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn split_once<F>(&self, pred: F) -> Option<(&[T], &[T])> where F: FnMut(&T) -> bool
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn splitn<F>(&self, n: usize, pred: F) -> SplitN<'_, T, F> where F: FnMut(&T) -> bool
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn splitn_mut<F>(&mut self, n: usize, pred: F) -> SplitNMut<'_, T, F> where F: FnMut(&T) -> bool
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn starts_with(&self, needle: &[T]) -> bool where T: PartialEq
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn strip_circumfix<S, P>(&self, prefix: &P, suffix: &S) -> Option<&[T]> where T: PartialEq, S: SlicePattern<Item = T> + ?Sized, P: SlicePattern<Item = T> + ?Sized
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn strip_prefix<P>(&self, prefix: &P) -> Option<&[T]> where P: SlicePattern<Item = T> + ?Sized, T: PartialEq
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn strip_suffix<P>(&self, suffix: &P) -> Option<&[T]> where P: SlicePattern<Item = T> + ?Sized, T: PartialEq
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn subslice_range(&self, subslice: &[T]) -> Option<Range<usize>>
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn swap(&mut self, a: usize, b: usize)
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const unsafe fn swap_unchecked(&mut self, a: usize, b: usize)
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn swap_with_slice(&mut self, other: &mut [T])
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn to_ascii_lowercase(&self) -> Vec<u8>
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn to_ascii_uppercase(&self) -> Vec<u8>
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn to_vec(&self) -> Vec<T> where T: Clone
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn to_vec_in<A>(&self, alloc: A) -> Vec<T, A> where A: Allocator, T: Clone
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn trim_ascii(&self) -> &[u8]
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn trim_ascii_end(&self) -> &[u8]
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn trim_ascii_start(&self) -> &[u8]
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn trim_prefix<P>(&self, prefix: &P) -> &[T] where P: SlicePattern<Item = T> + ?Sized, T: PartialEq
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn trim_suffix<P>(&self, suffix: &P) -> &[T] where P: SlicePattern<Item = T> + ?Sized, T: PartialEq
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn try_new_uninit_slice( len: usize, ) -> Result<Box<[MaybeUninit<T>]>, AllocError>
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn try_new_uninit_slice_in( len: usize, alloc: A, ) -> Result<Box<[MaybeUninit<T>], A>, AllocError>
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn try_new_zeroed_slice( len: usize, ) -> Result<Box<[MaybeUninit<T>]>, AllocError>
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn try_new_zeroed_slice_in( len: usize, alloc: A, ) -> Result<Box<[MaybeUninit<T>], A>, AllocError>
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn utf8_chunks(&self) -> Utf8Chunks<'_>
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn windows(&self, size: usize) -> Windows<'_, T>
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn write_clone_of_slice(&mut self, src: &[T]) -> &mut [T] where T: Clone
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn write_copy_of_slice(&mut self, src: &[T]) -> &mut [T] where T: Copy
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn write_filled(&mut self, value: T) -> &mut [T] where T: Clone
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn write_iter<I>(&mut self, it: I) -> (&mut [T], &mut [MaybeUninit<T>]) where I: IntoIterator<Item = T>
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn write_with<F>(&mut self, f: F) -> &mut [T] where F: FnMut(usize) -> T
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn as_ascii(&self) -> Option<&[AsciiChar]>
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const unsafe fn as_ascii_unchecked(&self) -> &[AsciiChar]
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn as_bytes(&self) -> &[u8]
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const unsafe fn as_bytes_mut(&mut self) -> &mut [u8]
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn as_mut_ptr(&mut self) -> *mut u8
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn as_ptr(&self) -> *const u8
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn as_str(&self) -> &str
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn bytes(&self) -> Bytes<'_>
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn ceil_char_boundary(&self, index: usize) -> usize
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn char_indices(&self) -> CharIndices<'_>
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn chars(&self) -> Chars<'_>
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn contains<P>(&self, pat: P) -> bool where P: Pattern
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn encode_utf16(&self) -> EncodeUtf16<'_>
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn ends_with<P>(&self, pat: P) -> bool where P: Pattern, <P as Pattern>::Searcher<'a>: for<'a> ReverseSearcher<'a>
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn eq_ignore_ascii_case(&self, other: &str) -> bool
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn eq_ignore_case_unnormalized(&self, other: &str) -> bool
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn escape_debug(&self) -> EscapeDebug<'_>
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn escape_default(&self) -> EscapeDefault<'_>
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn escape_unicode(&self) -> EscapeUnicode<'_>
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn find<P>(&self, pat: P) -> Option<usize> where P: Pattern
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn floor_char_boundary(&self, index: usize) -> usize
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn from_utf8(v: &[u8]) -> Result<&str, Utf8Error>
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn from_utf8_mut(v: &mut [u8]) -> Result<&mut str, Utf8Error>
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const unsafe fn from_utf8_unchecked(v: &[u8]) -> &str
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const unsafe fn from_utf8_unchecked_mut(v: &mut [u8]) -> &mut str
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn get<I>(&self, i: I) -> Option<&<I as SliceIndex<str>>::Output> where I: SliceIndex<str>
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn get_mut<I>( &mut self, i: I, ) -> Option<&mut <I as SliceIndex<str>>::Output> where I: SliceIndex<str>
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub unsafe fn get_unchecked<I>(&self, i: I) -> &<I as SliceIndex<str>>::Output where I: SliceIndex<str>
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub unsafe fn get_unchecked_mut<I>( &mut self, i: I, ) -> &mut <I as SliceIndex<str>>::Output where I: SliceIndex<str>
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn into_boxed_bytes(self: Box<str>) -> Box<[u8]>
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn into_string(self: Box<str>) -> String
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn is_ascii(&self) -> bool
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn is_char_boundary(&self, index: usize) -> bool
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn is_empty(&self) -> bool
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn len(&self) -> usize
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn lines(&self) -> Lines<'_>
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn lines_any(&self) -> LinesAny<'_>
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn make_ascii_lowercase(&mut self)
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn make_ascii_uppercase(&mut self)
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn match_indices<P>(&self, pat: P) -> MatchIndices<'_, P> where P: Pattern
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn matches<P>(&self, pat: P) -> Matches<'_, P> where P: Pattern
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn parse<F>(&self) -> Result<F, <F as FromStr>::Err> where F: FromStr
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn repeat(&self, n: usize) -> String
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn replace<P>(&self, from: P, to: &str) -> String where P: Pattern
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn replacen<P>(&self, pat: P, to: &str, count: usize) -> String where P: Pattern
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn rfind<P>(&self, pat: P) -> Option<usize> where P: Pattern, <P as Pattern>::Searcher<'a>: for<'a> ReverseSearcher<'a>
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn rmatch_indices<P>(&self, pat: P) -> RMatchIndices<'_, P> where P: Pattern, <P as Pattern>::Searcher<'a>: for<'a> ReverseSearcher<'a>
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn rmatches<P>(&self, pat: P) -> RMatches<'_, P> where P: Pattern, <P as Pattern>::Searcher<'a>: for<'a> ReverseSearcher<'a>
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn rsplit<P>(&self, pat: P) -> RSplit<'_, P> where P: Pattern, <P as Pattern>::Searcher<'a>: for<'a> ReverseSearcher<'a>
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn rsplit_once<P>(&self, delimiter: P) -> Option<(&str, &str)> where P: Pattern, <P as Pattern>::Searcher<'a>: for<'a> ReverseSearcher<'a>
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn rsplit_terminator<P>(&self, pat: P) -> RSplitTerminator<'_, P> where P: Pattern, <P as Pattern>::Searcher<'a>: for<'a> ReverseSearcher<'a>
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn rsplitn<P>(&self, n: usize, pat: P) -> RSplitN<'_, P> where P: Pattern, <P as Pattern>::Searcher<'a>: for<'a> ReverseSearcher<'a>
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub unsafe fn slice_mut_unchecked( &mut self, begin: usize, end: usize, ) -> &mut str
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub unsafe fn slice_unchecked(&self, begin: usize, end: usize) -> &str
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn split<P>(&self, pat: P) -> Split<'_, P> where P: Pattern
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn split_ascii_whitespace(&self) -> SplitAsciiWhitespace<'_>
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn split_at(&self, mid: usize) -> (&str, &str)
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn split_at_checked(&self, mid: usize) -> Option<(&str, &str)>
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn split_at_mut(&mut self, mid: usize) -> (&mut str, &mut str)
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn split_at_mut_checked( &mut self, mid: usize, ) -> Option<(&mut str, &mut str)>
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn split_inclusive<P>(&self, pat: P) -> SplitInclusive<'_, P> where P: Pattern
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn split_once<P>(&self, delimiter: P) -> Option<(&str, &str)> where P: Pattern
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn split_terminator<P>(&self, pat: P) -> SplitTerminator<'_, P> where P: Pattern
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn split_whitespace(&self) -> SplitWhitespace<'_>
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn splitn<P>(&self, n: usize, pat: P) -> SplitN<'_, P> where P: Pattern
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn starts_with<P>(&self, pat: P) -> bool where P: Pattern
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn strip_circumfix<P, S>(&self, prefix: P, suffix: S) -> Option<&str> where P: Pattern, S: Pattern, <S as Pattern>::Searcher<'a>: for<'a> ReverseSearcher<'a>
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn strip_prefix<P>(&self, prefix: P) -> Option<&str> where P: Pattern
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn strip_suffix<P>(&self, suffix: P) -> Option<&str> where P: Pattern, <P as Pattern>::Searcher<'a>: for<'a> ReverseSearcher<'a>
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn substr_range(&self, substr: &str) -> Option<Range<usize>>
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn to_ascii_lowercase(&self) -> String
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn to_ascii_uppercase(&self) -> String
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn to_casefold_unnormalized(&self) -> String
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn to_lowercase(&self) -> String
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn to_uppercase(&self) -> String
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn trim(&self) -> &str
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn trim_ascii(&self) -> &str
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn trim_ascii_end(&self) -> &str
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn trim_ascii_start(&self) -> &str
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn trim_end(&self) -> &str
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn trim_end_matches<P>(&self, pat: P) -> &str where P: Pattern, <P as Pattern>::Searcher<'a>: for<'a> ReverseSearcher<'a>
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn trim_left(&self) -> &str
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn trim_left_matches<P>(&self, pat: P) -> &str where P: Pattern
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn trim_matches<P>(&self, pat: P) -> &str where P: Pattern, <P as Pattern>::Searcher<'a>: for<'a> DoubleEndedSearcher<'a>
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn trim_prefix<P>(&self, prefix: P) -> &str where P: Pattern
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn trim_right(&self) -> &str
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn trim_right_matches<P>(&self, pat: P) -> &str where P: Pattern, <P as Pattern>::Searcher<'a>: for<'a> ReverseSearcher<'a>
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn trim_start(&self) -> &str
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn trim_start_matches<P>(&self, pat: P) -> &str where P: Pattern
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn trim_suffix<P>(&self, suffix: P) -> &str where P: Pattern, <P as Pattern>::Searcher<'a>: for<'a> ReverseSearcher<'a>
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn word_to_titlecase(&self) -> String
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn abs_diff(self, other: u8) -> u8
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn as_ascii(&self) -> Option<AsciiChar>
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const unsafe fn as_ascii_unchecked(&self) -> AsciiChar
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn bit_width(self) -> u32
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const BITS: u32
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn borrowing_sub(self, rhs: u8, borrow: bool) -> (u8, bool)
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn carrying_add(self, rhs: u8, carry: bool) -> (u8, bool)
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn carrying_carryless_mul(self, rhs: u8, carry: u8) -> (u8, u8)
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn carrying_mul(self, rhs: u8, carry: u8) -> (u8, u8)
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn carrying_mul_add(self, rhs: u8, carry: u8, add: u8) -> (u8, u8)
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn carryless_mul(self, rhs: u8) -> u8
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn cast_signed(self) -> i8
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn checked_add(self, rhs: u8) -> Option<u8>
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn checked_add_signed(self, rhs: i8) -> Option<u8>
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn checked_cast<T>(self) -> Option<T> where T: CheckedCastFromInt<u8>
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn checked_cast_signed(self) -> Option<i8>
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn checked_div(self, rhs: u8) -> Option<u8>
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn checked_div_euclid(self, rhs: u8) -> Option<u8>
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn checked_div_exact(self, rhs: u8) -> Option<u8>
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn checked_ilog(self, base: u8) -> Option<u32>
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn checked_ilog2(self) -> Option<u32>
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn checked_ilog10(self) -> Option<u32>
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn checked_mul(self, rhs: u8) -> Option<u8>
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn checked_neg(self) -> Option<u8>
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn checked_next_multiple_of(self, rhs: u8) -> Option<u8>
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn checked_next_power_of_two(self) -> Option<u8>
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn checked_pow(self, exp: u32) -> Option<u8>
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn checked_rem(self, rhs: u8) -> Option<u8>
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn checked_rem_euclid(self, rhs: u8) -> Option<u8>
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn checked_shl(self, rhs: u32) -> Option<u8>
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn checked_shr(self, rhs: u32) -> Option<u8>
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn checked_signed_diff(self, rhs: u8) -> Option<i8>
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn checked_sub(self, rhs: u8) -> Option<u8>
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn checked_sub_signed(self, rhs: i8) -> Option<u8>
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn checked_truncate<Target>(self) -> Option<Target> where u8: TruncateTarget<Target>
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn count_ones(self) -> u32
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn count_zeros(self) -> u32
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn deposit_bits(self, mask: u8) -> u8
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn div_ceil(self, rhs: u8) -> u8
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn div_euclid(self, rhs: u8) -> u8
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn div_exact(self, rhs: u8) -> Option<u8>
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn div_floor(self, rhs: u8) -> u8
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn eq_ignore_ascii_case(&self, other: &u8) -> bool
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn escape_ascii(self) -> EscapeDefault
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn extract_bits(self, mask: u8) -> u8
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn format_into(self, buf: &mut NumBuffer<u8>) -> &str
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn from_ascii(src: &[u8]) -> Result<u8, ParseIntError>
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn from_ascii_radix( src: &[u8], radix: u32, ) -> Result<u8, ParseIntError>
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn from_be(x: u8) -> u8
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn from_be_bytes(bytes: [u8; 1]) -> u8
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn from_le(x: u8) -> u8
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn from_le_bytes(bytes: [u8; 1]) -> u8
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn from_ne_bytes(bytes: [u8; 1]) -> u8
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn from_str_radix(src: &str, radix: u32) -> Result<u8, ParseIntError>
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn funnel_shl(self, rhs: u8, n: u32) -> u8
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn funnel_shr(self, rhs: u8, n: u32) -> u8
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn highest_one(self) -> Option<u32>
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn ilog(self, base: u8) -> u32
std::primitiveSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.