Movatterモバイル変換


[0]ホーム

URL:


Module str

std

Modulestr 

1.0.0 ·Source
Expand description

Utilities for thestr primitive type.

See also thestr primitive type.

Modules§

patternExperimental
The string Pattern API.

Structs§

Bytes
An iterator over the bytes of a string slice.
CharIndices
An iterator over thechars of a string slice, and their positions.
Chars
An iterator over thechars of a string slice.
EncodeUtf16
An iterator ofu16 over the string encoded as UTF-16.
EscapeDebug
The return type ofstr::escape_debug.
EscapeDefault
The return type ofstr::escape_default.
EscapeUnicode
The return type ofstr::escape_unicode.
Lines
An iterator over the lines of a string, as string slices.
LinesAnyDeprecated
Created with the methodlines_any.
MatchIndices
Created with the methodmatch_indices.
Matches
Created with the methodmatches.
ParseBoolError
An error returned when parsing abool usingfrom_str fails
RMatchIndices
Created with the methodrmatch_indices.
RMatches
Created with the methodrmatches.
RSplit
Created with the methodrsplit.
RSplitN
Created with the methodrsplitn.
RSplitTerminator
Created with the methodrsplit_terminator.
Split
Created with the methodsplit.
SplitAsciiWhitespace
An iterator over the non-ASCII-whitespace substrings of a string,separated by any amount of ASCII whitespace.
SplitInclusive
An iterator over the substrings of a string,terminated by a substring matching to a predicate functionUnlikeSplit, it contains the matched part as a terminatorof the subslice.
SplitN
Created with the methodsplitn.
SplitTerminator
Created with the methodsplit_terminator.
SplitWhitespace
An iterator over the non-whitespace substrings of a string,separated by any amount of whitespace.
Utf8Chunk
An item returned by theUtf8Chunks iterator.
Utf8Chunks
An iterator used to decode a slice of mostly UTF-8 bytes to string slices(&str) and byte slices (&[u8]).
Utf8Error
Errors which can occur when attempting to interpret a sequence ofu8as a string.

Traits§

FromStr
Parse a value from a string

Functions§

from_boxed_utf8_unchecked
Converts a boxed slice of bytes to a boxed string slice without checkingthat the string contains valid UTF-8.
from_utf8
Converts a slice of bytes to a string slice.
from_utf8_mut
Converts a mutable slice of bytes to a mutable string slice.
from_utf8_unchecked
Converts a slice of bytes to a string slice without checkingthat the string contains valid UTF-8.
from_utf8_unchecked_mut
Converts a slice of bytes to a string slice without checkingthat the string contains valid UTF-8; mutable version.
from_raw_partsExperimental
Creates a&str from a pointer and a length.
from_raw_parts_mutExperimental
Creates a&mut str from a pointer and a length.

[8]ページ先頭

©2009-2026 Movatter.jp