Skip to main content

Module convert

Module convert 

Source
Expand description

Character conversions.

Re-exportsยง

use crate::char::TryFromCharError; ๐Ÿ”’
use crate::error::Error; ๐Ÿ”’
use crate::fmt; ๐Ÿ”’
use crate::mem::transmute; ๐Ÿ”’
use crate::str::FromStr; ๐Ÿ”’
use crate::ub_checks::assert_unsafe_precondition; ๐Ÿ”’ Experimental

Structsยง

CharTryFromError
The error type returned when a conversion from u32 to char fails.
ParseCharError
An error which can be returned when parsing a char.

Enumsยง

CharErrorKind ๐Ÿ”’

Functionsยง

char_try_from_u32 ๐Ÿ”’
from_digit ๐Ÿ”’
Converts a digit in the given radix to a char. See char::from_digit.
from_u32 ๐Ÿ”’
Converts a u32 to a char. See char::from_u32.
from_u32_unchecked ๐Ÿ”’ โš 
Converts a u32 to a char, ignoring validity. See char::from_u32_unchecked.