Enum ascii::AsciiChar [−][src]
#[repr(u8)]pub enum AsciiChar { Null, SOH, SOX, ETX, EOT, ENQ, ACK, Bell, BackSpace, Tab, LineFeed, VT, FF, CarriageReturn, SI, SO, DLE, DC1, DC2, DC3, DC4, NAK, SYN, ETB, CAN, EM, SUB, ESC, FS, GS, RS, US, Space, Exclamation, Quotation, Hash, Dollar, Percent, Ampersand, Apostrophe, ParenOpen, ParenClose, Asterisk, Plus, Comma, Minus, Dot, Slash, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, Colon, Semicolon, LessThan, Equal, GreaterThan, Question, At, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z, BracketOpen, BackSlash, BracketClose, Caret, UnderScore, Grave, a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z, CurlyBraceOpen, VerticalBar, CurlyBraceClose, Tilde, DEL, }
An ASCII character. It wraps a u8
, with the highest bit always zero.
Variants
Null
'\0'
SOH
SOX
ETX
EOT
ENQ
ACK
Bell
'\a'
is not recognized by Rust.
BackSpace
'\b'
is not recognized by Rust.
Tab
'\t'
LineFeed
'\n'
VT
'\v'
is not recognized by Rust.
FF
'\f'
is not recognized by Rust.
CarriageReturn
'\r'
SI
SO
DLE
DC1
DC2
Device control 2
DC3
Device control 3, Often XOFF
DC4
Device control 4
NAK
SYN
ETB
CAN
EM
SUB
ESC
'\e'
is not recognized by Rust.
FS
GS
RS
US
Space
' '
Exclamation
'!'
Quotation
'"'
Hash
'#'
Dollar
'$'
Percent
'%'
Ampersand
'&'
Apostrophe
'\''
ParenOpen
'('
ParenClose
')'
Asterisk
'*'
Plus
'+'
Comma
','
Minus
'-'
Dot
'.'
Slash
'/'
_0
'0'
_1
'1'
_2
'2'
_3
'3'
_4
'4'
_5
'5'
_6
'6'
_7
'7'
_8
'8'
_9
'9'
Colon
':'
Semicolon
';'
LessThan
'<'
Equal
'='
GreaterThan
'>'
Question
'?'
At
'@'
A
'A'
B
'B'
C
'C'
D
'D'
E
'E'
F
'F'
G
'G'
H
'H'
I
'I'
J
'J'
K
'K'
L
'L'
M
'M'
N
'N'
O
'O'
P
'P'
Q
'Q'
R
'R'
S
'S'
T
'T'
U
'U'
V
'V'
W
'W'
X
'X'
Y
'Y'
Z
'Z'
BracketOpen
'['
BackSlash
'\'
BracketClose
']'
Caret
'_'
UnderScore
'_'
Grave
'
'`
a
'a'
b
'b'
c
'c'
d
'd'
e
'e'
f
'f'
g
'g'
h
'h'
i
'i'
j
'j'
k
'k'
l
'l'
m
'm'
n
'n'
o
'o'
p
'p'
q
'q'
r
'r'
s
's'
t
't'
u
'u'
v
'v'
w
'w'
x
'x'
y
'y'
z
'z'
CurlyBraceOpen
'{'
VerticalBar
'|'
CurlyBraceClose
'}'
Tilde
'~'
DEL
Methods
impl AsciiChar
[src]
impl AsciiChar
pub fn from<C: ToAsciiChar>(ch: C) -> Result<Self, ToAsciiCharError>
[src]
pub fn from<C: ToAsciiChar>(ch: C) -> Result<Self, ToAsciiCharError>
Constructs an ASCII character from a u8
, char
or other character type.
Failure
Returns Err(())
if the character can't be ASCII encoded.
Example
let a = AsciiChar::from('g').unwrap(); assert_eq!(a.as_char(), 'g');
pub unsafe fn from_unchecked<C: ToAsciiChar>(ch: C) -> Self
[src]
pub unsafe fn from_unchecked<C: ToAsciiChar>(ch: C) -> Self
Constructs an ASCII character from a char
or u8
without any checks.
pub fn as_byte(self) -> u8
[src]
pub fn as_byte(self) -> u8
Converts an ASCII character into a u8
.
pub fn as_char(self) -> char
[src]
pub fn as_char(self) -> char
Converts an ASCII character into a char
.
pub fn is_alphabetic(self) -> bool
[src]
pub fn is_alphabetic(self) -> bool
Check if the character is a letter (a-z, A-Z)
pub fn is_digit(self) -> bool
[src]
pub fn is_digit(self) -> bool
Check if the character is a number (0-9)
pub fn is_alphanumeric(self) -> bool
[src]
pub fn is_alphanumeric(self) -> bool
Check if the character is a letter or number
pub fn is_blank(self) -> bool
[src]
pub fn is_blank(self) -> bool
Check if the character is a space or horizontal tab
pub fn is_whitespace(self) -> bool
[src]
pub fn is_whitespace(self) -> bool
Check if the character is a ' ', '\t', '\n' or '\r'
pub fn is_control(self) -> bool
[src]
pub fn is_control(self) -> bool
Check if the character is a control character
Examples
use ascii::ToAsciiChar; assert_eq!('\0'.to_ascii_char().unwrap().is_control(), true); assert_eq!('n'.to_ascii_char().unwrap().is_control(), false); assert_eq!(' '.to_ascii_char().unwrap().is_control(), false); assert_eq!('\n'.to_ascii_char().unwrap().is_control(), true);
pub fn is_graph(self) -> bool
[src]
pub fn is_graph(self) -> bool
Checks if the character is printable (except space)
Examples
use ascii::ToAsciiChar; assert_eq!('n'.to_ascii_char().unwrap().is_graph(), true); assert_eq!(' '.to_ascii_char().unwrap().is_graph(), false); assert_eq!('\n'.to_ascii_char().unwrap().is_graph(), false);
pub fn is_print(self) -> bool
[src]
pub fn is_print(self) -> bool
Checks if the character is printable (including space)
Examples
use ascii::ToAsciiChar; assert_eq!('n'.to_ascii_char().unwrap().is_print(), true); assert_eq!(' '.to_ascii_char().unwrap().is_print(), true); assert_eq!('\n'.to_ascii_char().unwrap().is_print(), false);
pub fn is_lowercase(self) -> bool
[src]
pub fn is_lowercase(self) -> bool
Checks if the character is alphabetic and lowercase
Examples
use ascii::ToAsciiChar; assert_eq!('a'.to_ascii_char().unwrap().is_lowercase(), true); assert_eq!('A'.to_ascii_char().unwrap().is_lowercase(), false); assert_eq!('@'.to_ascii_char().unwrap().is_lowercase(), false);
pub fn is_uppercase(self) -> bool
[src]
pub fn is_uppercase(self) -> bool
Checks if the character is alphabetic and uppercase
Examples
use ascii::ToAsciiChar; assert_eq!('A'.to_ascii_char().unwrap().is_uppercase(), true); assert_eq!('a'.to_ascii_char().unwrap().is_uppercase(), false); assert_eq!('@'.to_ascii_char().unwrap().is_uppercase(), false);
pub fn is_punctuation(self) -> bool
[src]
pub fn is_punctuation(self) -> bool
Checks if the character is punctuation
Examples
use ascii::ToAsciiChar; assert_eq!('n'.to_ascii_char().unwrap().is_punctuation(), false); assert_eq!(' '.to_ascii_char().unwrap().is_punctuation(), false); assert_eq!('_'.to_ascii_char().unwrap().is_punctuation(), true); assert_eq!('~'.to_ascii_char().unwrap().is_punctuation(), true);
pub fn is_hex(self) -> bool
[src]
pub fn is_hex(self) -> bool
Checks if the character is a valid hex digit
Examples
use ascii::ToAsciiChar; assert_eq!('5'.to_ascii_char().unwrap().is_hex(), true); assert_eq!('a'.to_ascii_char().unwrap().is_hex(), true); assert_eq!('F'.to_ascii_char().unwrap().is_hex(), true); assert_eq!('G'.to_ascii_char().unwrap().is_hex(), false); assert_eq!(' '.to_ascii_char().unwrap().is_hex(), false);
pub fn as_printable_char(self) -> char
[src]
pub fn as_printable_char(self) -> char
Unicode has printable versions of the ASCII control codes, like '␛'.
This function is identical with .as_char()
for all values .is_printable()
returns true for,
but replaces the control codes with those unicodes printable versions.
Examples
assert_eq!('\0'.to_ascii_char().unwrap().as_printable_char(), '␀'); assert_eq!('\n'.to_ascii_char().unwrap().as_printable_char(), '␊'); assert_eq!(' '.to_ascii_char().unwrap().as_printable_char(), ' '); assert_eq!('p'.to_ascii_char().unwrap().as_printable_char(), 'p');
pub fn make_ascii_uppercase(&mut self)
[src]
pub fn make_ascii_uppercase(&mut self)
Replaces letters a
to z
with A
to Z
pub fn make_ascii_lowercase(&mut self)
[src]
pub fn make_ascii_lowercase(&mut self)
Replaces letters A
to Z
with a
to z
pub fn to_ascii_uppercase(&self) -> Self
[src]
pub fn to_ascii_uppercase(&self) -> Self
Maps letters a
...z
to A
...Z
and returns everything else unchanged.
pub fn to_ascii_lowercase(&self) -> Self
[src]
pub fn to_ascii_lowercase(&self) -> Self
Maps letters A
...Z
to a
...z
and returns everything else unchanged.
pub fn eq_ignore_ascii_case(&self, other: &Self) -> bool
[src]
pub fn eq_ignore_ascii_case(&self, other: &Self) -> bool
Compares two characters case-insensitively.
Trait Implementations
impl Clone for AsciiChar
[src]
impl Clone for AsciiChar
fn clone(&self) -> AsciiChar
[src]
fn clone(&self) -> AsciiChar
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl PartialEq for AsciiChar
[src]
impl PartialEq for AsciiChar
fn eq(&self, other: &AsciiChar) -> bool
[src]
fn eq(&self, other: &AsciiChar) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
fn ne(&self, other: &Rhs) -> bool
This method tests for !=
.
impl PartialOrd for AsciiChar
[src]
impl PartialOrd for AsciiChar
fn partial_cmp(&self, other: &AsciiChar) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &AsciiChar) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &Rhs) -> bool
1.0.0[src]
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
fn gt(&self, other: &Rhs) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
fn ge(&self, other: &Rhs) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Ord for AsciiChar
[src]
impl Ord for AsciiChar
fn cmp(&self, other: &AsciiChar) -> Ordering
[src]
fn cmp(&self, other: &AsciiChar) -> Ordering
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
1.21.0[src]
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
impl Eq for AsciiChar
[src]
impl Eq for AsciiChar
impl Hash for AsciiChar
[src]
impl Hash for AsciiChar
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Copy for AsciiChar
[src]
impl Copy for AsciiChar
impl Display for AsciiChar
[src]
impl Display for AsciiChar
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Debug for AsciiChar
[src]
impl Debug for AsciiChar
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl AsciiExt for AsciiChar
[src]
impl AsciiExt for AsciiChar
type Owned = AsciiChar
: use inherent methods instead
Container type for copied ASCII characters.
fn is_ascii(&self) -> bool
[src]
fn is_ascii(&self) -> bool
: use inherent methods instead
Checks if the value is within the ASCII range. Read more
fn to_ascii_uppercase(&self) -> AsciiChar
[src]
fn to_ascii_uppercase(&self) -> AsciiChar
: use inherent methods instead
Makes a copy of the value in its ASCII upper case equivalent. Read more
fn to_ascii_lowercase(&self) -> AsciiChar
[src]
fn to_ascii_lowercase(&self) -> AsciiChar
: use inherent methods instead
Makes a copy of the value in its ASCII lower case equivalent. Read more
fn eq_ignore_ascii_case(&self, other: &Self) -> bool
[src]
fn eq_ignore_ascii_case(&self, other: &Self) -> bool
: use inherent methods instead
Checks that two values are an ASCII case-insensitive match. Read more
fn make_ascii_uppercase(&mut self)
[src]
fn make_ascii_uppercase(&mut self)
: use inherent methods instead
Converts this type to its ASCII upper case equivalent in-place. Read more
fn make_ascii_lowercase(&mut self)
[src]
fn make_ascii_lowercase(&mut self)
: use inherent methods instead
Converts this type to its ASCII lower case equivalent in-place. Read more
fn is_ascii_alphabetic(&self) -> bool
[src]
fn is_ascii_alphabetic(&self) -> bool
: use inherent methods instead
ascii_ctype
)Checks if the value is an ASCII alphabetic character: U+0041 'A' ... U+005A 'Z' or U+0061 'a' ... U+007A 'z'. For strings, true if all characters in the string are ASCII alphabetic. Read more
fn is_ascii_uppercase(&self) -> bool
[src]
fn is_ascii_uppercase(&self) -> bool
: use inherent methods instead
ascii_ctype
)Checks if the value is an ASCII uppercase character: U+0041 'A' ... U+005A 'Z'. For strings, true if all characters in the string are ASCII uppercase. Read more
fn is_ascii_lowercase(&self) -> bool
[src]
fn is_ascii_lowercase(&self) -> bool
: use inherent methods instead
ascii_ctype
)Checks if the value is an ASCII lowercase character: U+0061 'a' ... U+007A 'z'. For strings, true if all characters in the string are ASCII lowercase. Read more
fn is_ascii_alphanumeric(&self) -> bool
[src]
fn is_ascii_alphanumeric(&self) -> bool
: use inherent methods instead
ascii_ctype
)Checks if the value is an ASCII alphanumeric character: U+0041 'A' ... U+005A 'Z', U+0061 'a' ... U+007A 'z', or U+0030 '0' ... U+0039 '9'. For strings, true if all characters in the string are ASCII alphanumeric. Read more
fn is_ascii_digit(&self) -> bool
[src]
fn is_ascii_digit(&self) -> bool
: use inherent methods instead
ascii_ctype
)Checks if the value is an ASCII decimal digit: U+0030 '0' ... U+0039 '9'. For strings, true if all characters in the string are ASCII digits. Read more
fn is_ascii_hexdigit(&self) -> bool
[src]
fn is_ascii_hexdigit(&self) -> bool
: use inherent methods instead
ascii_ctype
)Checks if the value is an ASCII hexadecimal digit: U+0030 '0' ... U+0039 '9', U+0041 'A' ... U+0046 'F', or U+0061 'a' ... U+0066 'f'. For strings, true if all characters in the string are ASCII hex digits. Read more
fn is_ascii_punctuation(&self) -> bool
[src]
fn is_ascii_punctuation(&self) -> bool
: use inherent methods instead
ascii_ctype
)Checks if the value is an ASCII punctuation character: Read more
fn is_ascii_graphic(&self) -> bool
[src]
fn is_ascii_graphic(&self) -> bool
: use inherent methods instead
ascii_ctype
)Checks if the value is an ASCII graphic character: U+0021 '!' ... U+007E '~'. For strings, true if all characters in the string are ASCII graphic characters. Read more
fn is_ascii_whitespace(&self) -> bool
[src]
fn is_ascii_whitespace(&self) -> bool
: use inherent methods instead
ascii_ctype
)Checks if the value is an ASCII whitespace character: U+0020 SPACE, U+0009 HORIZONTAL TAB, U+000A LINE FEED, U+000C FORM FEED, or U+000D CARRIAGE RETURN. For strings, true if all characters in the string are ASCII whitespace. Read more
fn is_ascii_control(&self) -> bool
[src]
fn is_ascii_control(&self) -> bool
: use inherent methods instead
ascii_ctype
)Checks if the value is an ASCII control character: U+0000 NUL ... U+001F UNIT SEPARATOR, or U+007F DELETE. Note that most ASCII whitespace characters are control characters, but SPACE is not. Read more
impl From<AsciiChar> for u8
[src]
impl From<AsciiChar> for u8
impl PartialEq<u8> for AsciiChar
[src]
impl PartialEq<u8> for AsciiChar
fn eq(&self, rhs: &u8) -> bool
[src]
fn eq(&self, rhs: &u8) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
fn ne(&self, other: &Rhs) -> bool
This method tests for !=
.
impl PartialEq<AsciiChar> for u8
[src]
impl PartialEq<AsciiChar> for u8
fn eq(&self, rhs: &AsciiChar) -> bool
[src]
fn eq(&self, rhs: &AsciiChar) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
fn ne(&self, other: &Rhs) -> bool
This method tests for !=
.
impl PartialOrd<u8> for AsciiChar
[src]
impl PartialOrd<u8> for AsciiChar
fn partial_cmp(&self, rhs: &u8) -> Option<Ordering>
[src]
fn partial_cmp(&self, rhs: &u8) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &Rhs) -> bool
1.0.0[src]
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
fn gt(&self, other: &Rhs) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
fn ge(&self, other: &Rhs) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl PartialOrd<AsciiChar> for u8
[src]
impl PartialOrd<AsciiChar> for u8
fn partial_cmp(&self, rhs: &AsciiChar) -> Option<Ordering>
[src]
fn partial_cmp(&self, rhs: &AsciiChar) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &Rhs) -> bool
1.0.0[src]
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
fn gt(&self, other: &Rhs) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
fn ge(&self, other: &Rhs) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl From<AsciiChar> for char
[src]
impl From<AsciiChar> for char
impl PartialEq<char> for AsciiChar
[src]
impl PartialEq<char> for AsciiChar
fn eq(&self, rhs: &char) -> bool
[src]
fn eq(&self, rhs: &char) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
fn ne(&self, other: &Rhs) -> bool
This method tests for !=
.
impl PartialEq<AsciiChar> for char
[src]
impl PartialEq<AsciiChar> for char
fn eq(&self, rhs: &AsciiChar) -> bool
[src]
fn eq(&self, rhs: &AsciiChar) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
fn ne(&self, other: &Rhs) -> bool
This method tests for !=
.
impl PartialOrd<char> for AsciiChar
[src]
impl PartialOrd<char> for AsciiChar
fn partial_cmp(&self, rhs: &char) -> Option<Ordering>
[src]
fn partial_cmp(&self, rhs: &char) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &Rhs) -> bool
1.0.0[src]
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
fn gt(&self, other: &Rhs) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
fn ge(&self, other: &Rhs) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl PartialOrd<AsciiChar> for char
[src]
impl PartialOrd<AsciiChar> for char
fn partial_cmp(&self, rhs: &AsciiChar) -> Option<Ordering>
[src]
fn partial_cmp(&self, rhs: &AsciiChar) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &Rhs) -> bool
1.0.0[src]
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
fn gt(&self, other: &Rhs) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
fn ge(&self, other: &Rhs) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl ToAsciiChar for AsciiChar
[src]
impl ToAsciiChar for AsciiChar
fn to_ascii_char(self) -> Result<AsciiChar, ToAsciiCharError>
[src]
fn to_ascii_char(self) -> Result<AsciiChar, ToAsciiCharError>
Convert to AsciiChar
.
unsafe fn to_ascii_char_unchecked(self) -> AsciiChar
[src]
unsafe fn to_ascii_char_unchecked(self) -> AsciiChar
Convert to AsciiChar
without checking that it is an ASCII character.
impl FromIterator<AsciiChar> for AsciiString
[src]
impl FromIterator<AsciiChar> for AsciiString
fn from_iter<I: IntoIterator<Item = AsciiChar>>(iter: I) -> AsciiString
[src]
fn from_iter<I: IntoIterator<Item = AsciiChar>>(iter: I) -> AsciiString
Creates a value from an iterator. Read more
impl Extend<AsciiChar> for AsciiString
[src]
impl Extend<AsciiChar> for AsciiString
fn extend<I: IntoIterator<Item = AsciiChar>>(&mut self, iterable: I)
[src]
fn extend<I: IntoIterator<Item = AsciiChar>>(&mut self, iterable: I)
Extends a collection with the contents of an iterator. Read more
impl<'a> Extend<&'a AsciiChar> for AsciiString
[src]
impl<'a> Extend<&'a AsciiChar> for AsciiString
fn extend<I: IntoIterator<Item = &'a AsciiChar>>(&mut self, iter: I)
[src]
fn extend<I: IntoIterator<Item = &'a AsciiChar>>(&mut self, iter: I)
Extends a collection with the contents of an iterator. Read more