Skip to main content

Ascii

Enum Ascii 

Source
pub enum Ascii {}
Expand description

Namespace for ASCII character and code point helpers.

Implementations§

Source§

impl Ascii

Source

pub const MAX_CHAR: char = '\u{007f}'

Maximum valid ASCII character.

Source

pub const MAX_BYTE: u8

Maximum valid ASCII byte.

Source

pub const MAX_FOLDING_COUNT: usize = 4

Maximum number of ASCII characters emitted by Self::fold.

Source

pub const NULL_CHAR: char = '\0'

ASCII NUL.

Source

pub const NULL_BYTE: u8

ASCII NUL as a byte.

Source

pub const START_OF_HEADER_CHAR: char = '\u{0001}'

ASCII SOH.

Source

pub const START_OF_HEADER_BYTE: u8

ASCII SOH as a byte.

Source

pub const START_OF_TEXT_CHAR: char = '\u{0002}'

ASCII STX.

Source

pub const START_OF_TEXT_BYTE: u8

ASCII STX as a byte.

Source

pub const END_OF_TEXT_CHAR: char = '\u{0003}'

ASCII ETX.

Source

pub const END_OF_TEXT_BYTE: u8

ASCII ETX as a byte.

Source

pub const START_OF_TRANSMISSION_CHAR: char = '\u{0004}'

ASCII EOT.

Source

pub const START_OF_TRANSMISSION_BYTE: u8

ASCII EOT as a byte.

Source

pub const ENQUIRY_CHAR: char = '\u{0005}'

ASCII ENQ.

Source

pub const ENQUIRY_BYTE: u8

ASCII ENQ as a byte.

Source

pub const ACKNOWLEDGMENT_CHAR: char = '\u{0006}'

ASCII ACK.

Source

pub const ACKNOWLEDGMENT_BYTE: u8

ASCII ACK as a byte.

Source

pub const BELL_CHAR: char = '\u{0007}'

ASCII BEL.

Source

pub const BELL_BYTE: u8

ASCII BEL as a byte.

Source

pub const BACKSPACE_CHAR: char = '\u{0008}'

ASCII BS.

Source

pub const BACKSPACE_BYTE: u8

ASCII BS as a byte.

Source

pub const HORIZONTAL_TAB_CHAR: char = '\t'

ASCII HT.

Source

pub const HORIZONTAL_TAB_BYTE: u8

ASCII HT as a byte.

Source

pub const LINE_FEED_CHAR: char = '\n'

ASCII LF.

Source

pub const LINE_FEED_BYTE: u8

ASCII LF as a byte.

Source

pub const VERTICAL_TAB_CHAR: char = '\u{000b}'

ASCII VT.

Source

pub const VERTICAL_TAB_BYTE: u8

ASCII VT as a byte.

Source

pub const FORM_FEED_CHAR: char = '\u{000c}'

ASCII FF.

Source

pub const FORM_FEED_BYTE: u8

ASCII FF as a byte.

Source

pub const CARRIAGE_RETURN_CHAR: char = '\r'

ASCII CR.

Source

pub const CARRIAGE_RETURN_BYTE: u8

ASCII CR as a byte.

Source

pub const SHIFT_OUT_CHAR: char = '\u{000e}'

ASCII SO.

Source

pub const SHIFT_OUT_BYTE: u8

ASCII SO as a byte.

Source

pub const SHIFT_IN_CHAR: char = '\u{000f}'

ASCII SI.

Source

pub const SHIFT_IN_BYTE: u8

ASCII SI as a byte.

ASCII DLE.

ASCII DLE as a byte.

Source

pub const DEVICE_CONTROL_1_CHAR: char = '\u{0011}'

ASCII DC1.

Source

pub const DEVICE_CONTROL_1_BYTE: u8

ASCII DC1 as a byte.

Source

pub const DEVICE_CONTROL_2_CHAR: char = '\u{0012}'

ASCII DC2.

Source

pub const DEVICE_CONTROL_2_BYTE: u8

ASCII DC2 as a byte.

Source

pub const DEVICE_CONTROL_3_CHAR: char = '\u{0013}'

ASCII DC3.

Source

pub const DEVICE_CONTROL_3_BYTE: u8

ASCII DC3 as a byte.

Source

pub const DEVICE_CONTROL_4_CHAR: char = '\u{0014}'

ASCII DC4.

Source

pub const DEVICE_CONTROL_4_BYTE: u8

ASCII DC4 as a byte.

Source

pub const NEGATIVE_ACKNOWLEDGEMENT_CHAR: char = '\u{0015}'

ASCII NAK.

Source

pub const NEGATIVE_ACKNOWLEDGEMENT_BYTE: u8

ASCII NAK as a byte.

Source

pub const SYNCHRONOUS_IDLE_CHAR: char = '\u{0016}'

ASCII SYN.

Source

pub const SYNCHRONOUS_IDLE_BYTE: u8

ASCII SYN as a byte.

Source

pub const END_OF_TRANS_BLOCK_CHAR: char = '\u{0017}'

ASCII ETB.

Source

pub const END_OF_TRANS_BLOCK_BYTE: u8

ASCII ETB as a byte.

Source

pub const CANCEL_CHAR: char = '\u{0018}'

ASCII CAN.

Source

pub const CANCEL_BYTE: u8

ASCII CAN as a byte.

Source

pub const END_OF_MEDIUM_CHAR: char = '\u{0019}'

ASCII EM.

Source

pub const END_OF_MEDIUM_BYTE: u8

ASCII EM as a byte.

Source

pub const SUBSTITUTE_CHAR: char = '\u{001a}'

ASCII SUB.

Source

pub const SUBSTITUTE_BYTE: u8

ASCII SUB as a byte.

Source

pub const ESCAPE_CHAR: char = '\u{001b}'

ASCII ESC.

Source

pub const ESCAPE_BYTE: u8

ASCII ESC as a byte.

Source

pub const FILE_SEPARATOR_CHAR: char = '\u{001c}'

ASCII FS.

Source

pub const FILE_SEPARATOR_BYTE: u8

ASCII FS as a byte.

Source

pub const GROUP_SEPARATOR_CHAR: char = '\u{001d}'

ASCII GS.

Source

pub const GROUP_SEPARATOR_BYTE: u8

ASCII GS as a byte.

Source

pub const RECORD_SEPARATOR_CHAR: char = '\u{001e}'

ASCII RS.

Source

pub const RECORD_SEPARATOR_BYTE: u8

ASCII RS as a byte.

Source

pub const UNIT_SEPARATOR_CHAR: char = '\u{001f}'

ASCII US.

Source

pub const UNIT_SEPARATOR_BYTE: u8

ASCII US as a byte.

Source

pub const DELETE_CHAR: char = '\u{007f}'

ASCII DEL.

Source

pub const DELETE_BYTE: u8

ASCII DEL as a byte.

Source

pub const SPACE_CHAR: char = ' '

ASCII space.

Source

pub const SPACE_BYTE: u8

ASCII space as a byte.

Source

pub const EXCLAMATION_CHAR: char = '!'

ASCII exclamation mark.

Source

pub const EXCLAMATION_BYTE: u8

ASCII exclamation mark as a byte.

Source

pub const DOUBLE_QUOTE_CHAR: char = '"'

ASCII double quote.

Source

pub const DOUBLE_QUOTE_BYTE: u8

ASCII double quote as a byte.

Source

pub const SHARP_CHAR: char = '#'

ASCII number sign.

Source

pub const SHARP_BYTE: u8

ASCII number sign as a byte.

Source

pub const DOLLAR_CHAR: char = '$'

ASCII dollar sign.

Source

pub const DOLLAR_BYTE: u8

ASCII dollar sign as a byte.

Source

pub const PERCENT_CHAR: char = '%'

ASCII percent sign.

Source

pub const PERCENT_BYTE: u8

ASCII percent sign as a byte.

Source

pub const AMPERSAND_CHAR: char = '&'

ASCII ampersand.

Source

pub const AMPERSAND_BYTE: u8

ASCII ampersand as a byte.

Source

pub const TAB_CHAR: char = '\t'

ASCII tab.

Source

pub const TAB_BYTE: u8

ASCII tab as a byte.

Source

pub const BACKSLASH_CHAR: char = '\\'

ASCII backslash.

Source

pub const BACKSLASH_BYTE: u8

ASCII backslash as a byte.

Source

pub const SINGLE_QUOTE_CHAR: char = '\''

ASCII single quote.

Source

pub const SINGLE_QUOTE_BYTE: u8

ASCII single quote as a byte.

Source

pub const BACK_QUOTE_CHAR: char = '`'

ASCII back quote.

Source

pub const BACK_QUOTE_BYTE: u8

ASCII back quote as a byte.

Source

pub const COMMA_CHAR: char = ','

ASCII comma.

Source

pub const COMMA_BYTE: u8

ASCII comma as a byte.

Source

pub const PERIOD_CHAR: char = '.'

ASCII period.

Source

pub const PERIOD_BYTE: u8

ASCII period as a byte.

Source

pub const MIN_PRINTABLE_CHAR: char = ' '

Minimum printable ASCII character.

Source

pub const MIN_PRINTABLE_BYTE: u8

Minimum printable ASCII character as a byte.

Source

pub const MAX_PRINTABLE_CHAR: char = '~'

Maximum printable ASCII character.

Source

pub const MAX_PRINTABLE_BYTE: u8

Maximum printable ASCII character as a byte.

Source

pub const PRINTABLE_CHARS: [char; 95]

All printable ASCII characters.

Source

pub const PRINTABLE_BYTES: [u8; 95]

All printable ASCII characters as bytes.

Source

pub const LETTER_CHARS: [char; 52]

All ASCII letter characters.

Source

pub const LETTER_BYTES: [u8; 52]

All ASCII letter characters as bytes.

Source

pub const LETTER_DIGIT_CHARS: [char; 62]

All ASCII letter and digit characters.

Source

pub const LETTER_DIGIT_BYTES: [u8; 62]

All ASCII letter and digit characters as bytes.

Source

pub const DIGIT_CHARS: [char; 10]

ASCII digit characters.

Source

pub const DIGIT_BYTES: [u8; 10]

ASCII digit bytes.

Source

pub const LOWERCASE_HEX_DIGIT_CHARS: [char; 16]

Lowercase ASCII hexadecimal digit characters.

Source

pub const LOWERCASE_HEX_DIGIT_BYTES: [u8; 16]

Lowercase ASCII hexadecimal digit bytes.

Source

pub const UPPERCASE_HEX_DIGIT_CHARS: [char; 16]

Uppercase ASCII hexadecimal digit characters.

Source

pub const UPPERCASE_HEX_DIGIT_BYTES: [u8; 16]

Uppercase ASCII hexadecimal digit bytes.

Source

pub const fn is_ascii_byte(ch: u8) -> bool

Tests whether a byte is an ASCII byte.

§Parameters
  • ch: The byte to test.
§Returns

Returns true if ch is in the ASCII range 0x00..=0x7F.

Source

pub const fn is_ascii_char(ch: char) -> bool

Tests whether a character is an ASCII character.

§Parameters
  • ch: The character to test.
§Returns

Returns true if ch is in the ASCII range U+0000..=U+007F.

Source

pub const fn is_ascii_code_point(ch: u32) -> bool

Tests whether an integer value is an ASCII code point.

§Parameters
  • ch: The raw code point value to test.
§Returns

Returns true if ch is in the ASCII range 0x00..=0x7F. Negative values and values above 0x7F return false.

Source

pub const fn is_whitespace_byte(ch: u8) -> bool

Tests whether a byte is Java-style ASCII whitespace.

§Parameters
  • ch: The byte to test.
§Returns

Returns true for tab, line feed, form feed, carriage return, or space.

Source

pub const fn is_whitespace_char(ch: char) -> bool

Tests whether a character is Java-style ASCII whitespace.

§Parameters
  • ch: The character to test.
§Returns

Returns true for tab, line feed, form feed, carriage return, or space.

Source

pub const fn is_whitespace_code_point(ch: u32) -> bool

Tests whether a raw code point is Java-style ASCII whitespace.

§Parameters
  • ch: The raw code point value to test.
§Returns

Returns true for tab, line feed, form feed, carriage return, or space. Other values, including negative values, return false.

Source

pub const fn is_letter_byte(ch: u8) -> bool

Tests whether a byte is an ASCII letter.

§Parameters
  • ch: The byte to test.
§Returns

Returns true if ch is in A..=Z or a..=z.

Source

pub const fn is_letter_char(ch: char) -> bool

Tests whether a character is an ASCII letter.

§Parameters
  • ch: The character to test.
§Returns

Returns true if ch is in A..=Z or a..=z.

Source

pub const fn is_letter_code_point(ch: u32) -> bool

Tests whether a raw code point is an ASCII letter.

§Parameters
  • ch: The raw code point value to test.
§Returns

Returns true if ch is in A..=Z or a..=z.

Source

pub const fn is_uppercase_letter_byte(ch: u8) -> bool

Tests whether a byte is an uppercase ASCII letter.

§Parameters
  • ch: The byte to test.
§Returns

Returns true if ch is in A..=Z.

Source

pub const fn is_uppercase_letter_char(ch: char) -> bool

Tests whether a character is an uppercase ASCII letter.

§Parameters
  • ch: The character to test.
§Returns

Returns true if ch is in A..=Z.

Source

pub const fn is_uppercase_letter_code_point(ch: u32) -> bool

Tests whether a raw code point is an uppercase ASCII letter.

§Parameters
  • ch: The raw code point value to test.
§Returns

Returns true if ch is in A..=Z.

Source

pub const fn is_lowercase_letter_byte(ch: u8) -> bool

Tests whether a byte is a lowercase ASCII letter.

§Parameters
  • ch: The byte to test.
§Returns

Returns true if ch is in a..=z.

Source

pub const fn is_lowercase_letter_char(ch: char) -> bool

Tests whether a character is a lowercase ASCII letter.

§Parameters
  • ch: The character to test.
§Returns

Returns true if ch is in a..=z.

Source

pub const fn is_lowercase_letter_code_point(ch: u32) -> bool

Tests whether a raw code point is a lowercase ASCII letter.

§Parameters
  • ch: The raw code point value to test.
§Returns

Returns true if ch is in a..=z.

Source

pub const fn is_digit_byte(ch: u8) -> bool

Tests whether a byte is an ASCII decimal digit.

§Parameters
  • ch: The byte to test.
§Returns

Returns true if ch is in 0..=9.

Source

pub const fn is_digit_char(ch: char) -> bool

Tests whether a character is an ASCII decimal digit.

§Parameters
  • ch: The character to test.
§Returns

Returns true if ch is in 0..=9.

Source

pub const fn is_digit_code_point(ch: u32) -> bool

Tests whether a raw code point is an ASCII decimal digit.

§Parameters
  • ch: The raw code point value to test.
§Returns

Returns true if ch is in 0..=9.

Source

pub const fn is_hex_digit_byte(ch: u8) -> bool

Tests whether a byte is an ASCII hexadecimal digit.

§Parameters
  • ch: The byte to test.
§Returns

Returns true if ch is in 0..=9, A..=F, or a..=f.

Source

pub const fn is_hex_digit_char(ch: char) -> bool

Tests whether a character is an ASCII hexadecimal digit.

§Parameters
  • ch: The character to test.
§Returns

Returns true if ch is in 0..=9, A..=F, or a..=f.

Source

pub const fn is_hex_digit_code_point(ch: u32) -> bool

Tests whether a raw code point is an ASCII hexadecimal digit.

§Parameters
  • ch: The raw code point value to test.
§Returns

Returns true if ch is in 0..=9, A..=F, or a..=f.

Source

pub const fn is_octal_digit_byte(ch: u8) -> bool

Tests whether a byte is an ASCII octal digit.

§Parameters
  • ch: The byte to test.
§Returns

Returns true if ch is in 0..=7.

Source

pub const fn is_octal_digit_char(ch: char) -> bool

Tests whether a character is an ASCII octal digit.

§Parameters
  • ch: The character to test.
§Returns

Returns true if ch is in 0..=7.

Source

pub const fn is_octal_digit_code_point(ch: u32) -> bool

Tests whether a raw code point is an ASCII octal digit.

§Parameters
  • ch: The raw code point value to test.
§Returns

Returns true if ch is in 0..=7.

Source

pub const fn is_letter_or_digit_byte(ch: u8) -> bool

Tests whether a byte is an ASCII letter or digit.

§Parameters
  • ch: The byte to test.
§Returns

Returns true if ch is an ASCII letter or decimal digit.

Source

pub const fn is_letter_or_digit_char(ch: char) -> bool

Tests whether a character is an ASCII letter or digit.

§Parameters
  • ch: The character to test.
§Returns

Returns true if ch is an ASCII letter or decimal digit.

Source

pub const fn is_letter_or_digit_code_point(ch: u32) -> bool

Tests whether a raw code point is an ASCII letter or digit.

§Parameters
  • ch: The raw code point value to test.
§Returns

Returns true if ch is an ASCII letter or decimal digit.

Source

pub const fn is_printable_byte(ch: u8) -> bool

Tests whether a byte is a printable ASCII character.

§Parameters
  • ch: The byte to test.
§Returns

Returns true if ch is in the printable ASCII range 0x20..=0x7E.

Source

pub const fn is_printable_char(ch: char) -> bool

Tests whether a character is a printable ASCII character.

§Parameters
  • ch: The character to test.
§Returns

Returns true if ch is in the printable ASCII range U+0020..=U+007E.

Source

pub const fn is_printable_code_point(ch: u32) -> bool

Tests whether a raw code point is a printable ASCII character.

§Parameters
  • ch: The raw code point value to test.
§Returns

Returns true if ch is in the printable ASCII range 0x20..=0x7E.

Source

pub const fn is_control_byte(ch: u8) -> bool

Tests whether a byte is an ASCII control character.

§Parameters
  • ch: The byte to test.
§Returns

Returns true for 0x00..=0x1F or 0x7F.

Source

pub const fn is_control_char(ch: char) -> bool

Tests whether a character is an ASCII control character.

§Parameters
  • ch: The character to test.
§Returns

Returns true for U+0000..=U+001F or U+007F.

Source

pub const fn is_control_code_point(ch: u32) -> bool

Tests whether a raw code point is an ASCII control character.

§Parameters
  • ch: The raw code point value to test.
§Returns

Returns true for 0x00..=0x1F or 0x7F.

Source

pub const fn equals_ignore_case_byte(ch1: u8, ch2: u8) -> bool

Compares two bytes while ignoring ASCII case.

§Parameters
  • ch1: The first byte to compare.
  • ch2: The second byte to compare.
§Returns

Returns true if the bytes are equal after converting ASCII uppercase letters to lowercase. Non-ASCII bytes are compared unchanged.

Source

pub const fn equals_ignore_case_char(ch1: char, ch2: char) -> bool

Compares two characters while ignoring ASCII case.

§Parameters
  • ch1: The first character to compare.
  • ch2: The second character to compare.
§Returns

Returns true if the characters are equal after converting ASCII uppercase letters to lowercase. Non-ASCII characters are compared unchanged.

Source

pub const fn equals_ignore_case_code_point(ch1: u32, ch2: u32) -> bool

Compares two raw code points while ignoring ASCII case.

§Parameters
  • ch1: The first raw code point value to compare.
  • ch2: The second raw code point value to compare.
§Returns

Returns true if the values are equal after converting ASCII uppercase letters to lowercase. Values outside ASCII are compared unchanged.

Source

pub const fn byte_to_uppercase(ch: u8) -> u8

Converts a byte to uppercase using ASCII case rules.

§Parameters
  • ch: The byte to convert.
§Returns

Returns the uppercase ASCII equivalent for a..=z; all other bytes are returned unchanged.

Source

pub const fn char_to_uppercase(ch: char) -> char

Converts a character to uppercase using ASCII case rules.

§Parameters
  • ch: The character to convert.
§Returns

Returns the uppercase ASCII equivalent for a..=z; all other characters are returned unchanged.

Source

pub const fn code_point_to_uppercase(ch: u32) -> u32

Converts a raw code point to uppercase using ASCII case rules.

§Parameters
  • ch: The raw code point value to convert.
§Returns

Returns the uppercase ASCII equivalent for a..=z; all other values are returned unchanged.

Source

pub const fn byte_to_lowercase(ch: u8) -> u8

Converts a byte to lowercase using ASCII case rules.

§Parameters
  • ch: The byte to convert.
§Returns

Returns the lowercase ASCII equivalent for A..=Z; all other bytes are returned unchanged.

Source

pub const fn char_to_lowercase(ch: char) -> char

Converts a character to lowercase using ASCII case rules.

§Parameters
  • ch: The character to convert.
§Returns

Returns the lowercase ASCII equivalent for A..=Z; all other characters are returned unchanged.

Source

pub const fn code_point_to_lowercase(ch: u32) -> u32

Converts a raw code point to lowercase using ASCII case rules.

§Parameters
  • ch: The raw code point value to convert.
§Returns

Returns the lowercase ASCII equivalent for A..=Z; all other values are returned unchanged.

Source

pub const fn byte_to_digit(ch: u8) -> Option<u8>

Converts an ASCII decimal digit byte into its numeric value.

§Parameters
  • ch: The byte to convert.
§Returns

Returns Some(0..=9) for 0..=9; returns None otherwise.

Source

pub const fn char_to_digit(ch: char) -> Option<u8>

Converts an ASCII decimal digit character into its numeric value.

§Parameters
  • ch: The character to convert.
§Returns

Returns Some(0..=9) for 0..=9; returns None otherwise.

Source

pub const fn code_point_to_digit(ch: u32) -> Option<u8>

Converts an ASCII decimal digit code point into its numeric value.

§Parameters
  • ch: The raw code point value to convert.
§Returns

Returns Some(0..=9) for 0..=9; returns None otherwise.

Source

pub const fn byte_to_hex_digit(ch: u8) -> Option<u8>

Converts an ASCII hexadecimal digit byte into its numeric value.

§Parameters
  • ch: The byte to convert.
§Returns

Returns Some(0..=15) for 0..=9, A..=F, or a..=f; returns None otherwise.

Source

pub const fn char_to_hex_digit(ch: char) -> Option<u8>

Converts an ASCII hexadecimal digit character into its numeric value.

§Parameters
  • ch: The character to convert.
§Returns

Returns Some(0..=15) for 0..=9, A..=F, or a..=f; returns None otherwise.

Source

pub const fn code_point_to_hex_digit(ch: u32) -> Option<u8>

Converts an ASCII hexadecimal digit code point into its numeric value.

§Parameters
  • ch: The raw code point value to convert.
§Returns

Returns Some(0..=15) for 0..=9, A..=F, or a..=f; returns None otherwise.

Source

pub fn fold(ch: char, result: &mut [char], offset: usize) -> usize

Folds a Unicode character to its ASCII replacement.

§Parameters
  • ch: The character to fold.
  • result: The caller-provided output buffer that receives the folded characters.
  • offset: The starting index in result at which folded characters are written.
§Returns

Returns the number of characters written to result starting at offset. ASCII characters and unmapped non-ASCII characters write one character. Mapped characters write up to Self::MAX_FOLDING_COUNT ASCII characters.

§Panics

Panics if result has fewer than Self::MAX_FOLDING_COUNT writable slots after offset.

Source

pub fn fold_to_string(ch: char) -> String

Folds a Unicode character into an owned string.

§Parameters
  • ch: The character to fold.
§Returns

Returns the folded ASCII replacement as a String. If ch has no folding mapping, the returned string contains ch unchanged.

Auto Trait Implementations§

§

impl Freeze for Ascii

§

impl RefUnwindSafe for Ascii

§

impl Send for Ascii

§

impl Sync for Ascii

§

impl Unpin for Ascii

§

impl UnsafeUnpin for Ascii

§

impl UnwindSafe for Ascii

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

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

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

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

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.
Source§

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

Source§

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

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.