[−][src]Trait codepage_437::FromCp437
Move data encoded in cp437 to a Unicode container of the specified type.
Examples
let cp437 = vec![0x4C, 0x6F, 0x63, 0x61, 0x6C, 0x20, 0x6E, 0x65, 0x77, 0x73, 0x20, 0x72, 0x65, 0x70, 0x6F, 0x72, 0x74, 0x73, 0x20, 0x74, 0x68, 0x61, 0x74, 0x20, 0x74, 0x68, 0x65, 0x20, 0x9E, 0xAB, 0x20, 0x6D, 0x69, 0x6C, 0x6C, 0x69, 0x6F, 0x6E, 0x20, 0x41, 0x69, 0x72, 0x20, 0x4D, 0x65, 0x6C, 0x61, 0x6E, 0x65, 0x73, 0x69, 0x91, 0x20, 0x61, 0x69, 0x72, 0x63, 0x72, 0x61, 0x66, 0x74, 0x20, 0x68, 0x61, 0x73, 0x20, 0x63, 0x72, 0x61, 0x73, 0x68, 0x65, 0x64, 0x20, 0x74, 0x68, 0x69, 0x73, 0x20, 0x6D, 0x6F, 0x72, 0x6E, 0x69, 0x6E, 0x67, 0x20, 0x61, 0x72, 0x6F, 0x75, 0x6E, 0x64, 0x20, 0x39, 0x3A, 0x30, 0x30, 0x61, 0x6D, 0x2E]; let unicode = "Local news reports that the ₧½ million Air Melanesiæ aircraft has crashed this morning around 9:00am."; assert_eq!(String::from_cp437(cp437, &CP437_CONTROL), unicode); // cp437 is moved out of
Required Methods
fn from_cp437(cp437: T, dialect: &Cp437Dialect) -> Self
Do the conversion.
Implementations on Foreign Types
impl FromCp437<Vec<u8>> for String
[src]
impl FromCp437<Vec<u8>> for String
fn from_cp437(cp437: Vec<u8>, dialect: &Cp437Dialect) -> Self
[src]
fn from_cp437(cp437: Vec<u8>, dialect: &Cp437Dialect) -> Self
impl FromCp437<[u8; 0]> for String
[src]
impl FromCp437<[u8; 0]> for String
fn from_cp437(_: [u8; 0], _: &Cp437Dialect) -> Self
[src]
fn from_cp437(_: [u8; 0], _: &Cp437Dialect) -> Self
impl FromCp437<[u8; 1]> for String
[src]
impl FromCp437<[u8; 1]> for String
fn from_cp437(cp437: [u8; 1], dialect: &Cp437Dialect) -> Self
[src]
fn from_cp437(cp437: [u8; 1], dialect: &Cp437Dialect) -> Self
impl FromCp437<[u8; 2]> for String
[src]
impl FromCp437<[u8; 2]> for String
fn from_cp437(cp437: [u8; 2], dialect: &Cp437Dialect) -> Self
[src]
fn from_cp437(cp437: [u8; 2], dialect: &Cp437Dialect) -> Self
impl FromCp437<[u8; 3]> for String
[src]
impl FromCp437<[u8; 3]> for String
fn from_cp437(cp437: [u8; 3], dialect: &Cp437Dialect) -> Self
[src]
fn from_cp437(cp437: [u8; 3], dialect: &Cp437Dialect) -> Self
impl FromCp437<[u8; 4]> for String
[src]
impl FromCp437<[u8; 4]> for String
fn from_cp437(cp437: [u8; 4], dialect: &Cp437Dialect) -> Self
[src]
fn from_cp437(cp437: [u8; 4], dialect: &Cp437Dialect) -> Self
impl FromCp437<[u8; 5]> for String
[src]
impl FromCp437<[u8; 5]> for String
fn from_cp437(cp437: [u8; 5], dialect: &Cp437Dialect) -> Self
[src]
fn from_cp437(cp437: [u8; 5], dialect: &Cp437Dialect) -> Self
impl FromCp437<[u8; 6]> for String
[src]
impl FromCp437<[u8; 6]> for String
fn from_cp437(cp437: [u8; 6], dialect: &Cp437Dialect) -> Self
[src]
fn from_cp437(cp437: [u8; 6], dialect: &Cp437Dialect) -> Self
impl FromCp437<[u8; 7]> for String
[src]
impl FromCp437<[u8; 7]> for String
fn from_cp437(cp437: [u8; 7], dialect: &Cp437Dialect) -> Self
[src]
fn from_cp437(cp437: [u8; 7], dialect: &Cp437Dialect) -> Self
impl FromCp437<[u8; 8]> for String
[src]
impl FromCp437<[u8; 8]> for String
fn from_cp437(cp437: [u8; 8], dialect: &Cp437Dialect) -> Self
[src]
fn from_cp437(cp437: [u8; 8], dialect: &Cp437Dialect) -> Self
impl FromCp437<[u8; 9]> for String
[src]
impl FromCp437<[u8; 9]> for String
fn from_cp437(cp437: [u8; 9], dialect: &Cp437Dialect) -> Self
[src]
fn from_cp437(cp437: [u8; 9], dialect: &Cp437Dialect) -> Self
impl FromCp437<[u8; 10]> for String
[src]
impl FromCp437<[u8; 10]> for String
fn from_cp437(cp437: [u8; 10], dialect: &Cp437Dialect) -> Self
[src]
fn from_cp437(cp437: [u8; 10], dialect: &Cp437Dialect) -> Self
impl FromCp437<[u8; 11]> for String
[src]
impl FromCp437<[u8; 11]> for String
fn from_cp437(cp437: [u8; 11], dialect: &Cp437Dialect) -> Self
[src]
fn from_cp437(cp437: [u8; 11], dialect: &Cp437Dialect) -> Self
impl FromCp437<[u8; 12]> for String
[src]
impl FromCp437<[u8; 12]> for String
fn from_cp437(cp437: [u8; 12], dialect: &Cp437Dialect) -> Self
[src]
fn from_cp437(cp437: [u8; 12], dialect: &Cp437Dialect) -> Self
impl FromCp437<[u8; 13]> for String
[src]
impl FromCp437<[u8; 13]> for String
fn from_cp437(cp437: [u8; 13], dialect: &Cp437Dialect) -> Self
[src]
fn from_cp437(cp437: [u8; 13], dialect: &Cp437Dialect) -> Self
impl FromCp437<[u8; 14]> for String
[src]
impl FromCp437<[u8; 14]> for String
fn from_cp437(cp437: [u8; 14], dialect: &Cp437Dialect) -> Self
[src]
fn from_cp437(cp437: [u8; 14], dialect: &Cp437Dialect) -> Self
impl FromCp437<[u8; 15]> for String
[src]
impl FromCp437<[u8; 15]> for String
fn from_cp437(cp437: [u8; 15], dialect: &Cp437Dialect) -> Self
[src]
fn from_cp437(cp437: [u8; 15], dialect: &Cp437Dialect) -> Self
impl FromCp437<[u8; 16]> for String
[src]
impl FromCp437<[u8; 16]> for String
fn from_cp437(cp437: [u8; 16], dialect: &Cp437Dialect) -> Self
[src]
fn from_cp437(cp437: [u8; 16], dialect: &Cp437Dialect) -> Self
impl FromCp437<[u8; 17]> for String
[src]
impl FromCp437<[u8; 17]> for String
fn from_cp437(cp437: [u8; 17], dialect: &Cp437Dialect) -> Self
[src]
fn from_cp437(cp437: [u8; 17], dialect: &Cp437Dialect) -> Self
impl FromCp437<[u8; 18]> for String
[src]
impl FromCp437<[u8; 18]> for String
fn from_cp437(cp437: [u8; 18], dialect: &Cp437Dialect) -> Self
[src]
fn from_cp437(cp437: [u8; 18], dialect: &Cp437Dialect) -> Self
impl FromCp437<[u8; 19]> for String
[src]
impl FromCp437<[u8; 19]> for String
fn from_cp437(cp437: [u8; 19], dialect: &Cp437Dialect) -> Self
[src]
fn from_cp437(cp437: [u8; 19], dialect: &Cp437Dialect) -> Self
impl FromCp437<[u8; 20]> for String
[src]
impl FromCp437<[u8; 20]> for String
fn from_cp437(cp437: [u8; 20], dialect: &Cp437Dialect) -> Self
[src]
fn from_cp437(cp437: [u8; 20], dialect: &Cp437Dialect) -> Self
impl FromCp437<[u8; 21]> for String
[src]
impl FromCp437<[u8; 21]> for String
fn from_cp437(cp437: [u8; 21], dialect: &Cp437Dialect) -> Self
[src]
fn from_cp437(cp437: [u8; 21], dialect: &Cp437Dialect) -> Self
impl FromCp437<[u8; 22]> for String
[src]
impl FromCp437<[u8; 22]> for String
fn from_cp437(cp437: [u8; 22], dialect: &Cp437Dialect) -> Self
[src]
fn from_cp437(cp437: [u8; 22], dialect: &Cp437Dialect) -> Self
impl FromCp437<[u8; 23]> for String
[src]
impl FromCp437<[u8; 23]> for String
fn from_cp437(cp437: [u8; 23], dialect: &Cp437Dialect) -> Self
[src]
fn from_cp437(cp437: [u8; 23], dialect: &Cp437Dialect) -> Self
impl FromCp437<[u8; 24]> for String
[src]
impl FromCp437<[u8; 24]> for String
fn from_cp437(cp437: [u8; 24], dialect: &Cp437Dialect) -> Self
[src]
fn from_cp437(cp437: [u8; 24], dialect: &Cp437Dialect) -> Self
impl FromCp437<[u8; 25]> for String
[src]
impl FromCp437<[u8; 25]> for String
fn from_cp437(cp437: [u8; 25], dialect: &Cp437Dialect) -> Self
[src]
fn from_cp437(cp437: [u8; 25], dialect: &Cp437Dialect) -> Self
impl FromCp437<[u8; 26]> for String
[src]
impl FromCp437<[u8; 26]> for String
fn from_cp437(cp437: [u8; 26], dialect: &Cp437Dialect) -> Self
[src]
fn from_cp437(cp437: [u8; 26], dialect: &Cp437Dialect) -> Self
impl FromCp437<[u8; 27]> for String
[src]
impl FromCp437<[u8; 27]> for String
fn from_cp437(cp437: [u8; 27], dialect: &Cp437Dialect) -> Self
[src]
fn from_cp437(cp437: [u8; 27], dialect: &Cp437Dialect) -> Self
impl FromCp437<[u8; 28]> for String
[src]
impl FromCp437<[u8; 28]> for String
fn from_cp437(cp437: [u8; 28], dialect: &Cp437Dialect) -> Self
[src]
fn from_cp437(cp437: [u8; 28], dialect: &Cp437Dialect) -> Self
impl FromCp437<[u8; 29]> for String
[src]
impl FromCp437<[u8; 29]> for String
fn from_cp437(cp437: [u8; 29], dialect: &Cp437Dialect) -> Self
[src]
fn from_cp437(cp437: [u8; 29], dialect: &Cp437Dialect) -> Self
impl FromCp437<[u8; 30]> for String
[src]
impl FromCp437<[u8; 30]> for String
fn from_cp437(cp437: [u8; 30], dialect: &Cp437Dialect) -> Self
[src]
fn from_cp437(cp437: [u8; 30], dialect: &Cp437Dialect) -> Self
impl FromCp437<[u8; 31]> for String
[src]
impl FromCp437<[u8; 31]> for String
fn from_cp437(cp437: [u8; 31], dialect: &Cp437Dialect) -> Self
[src]
fn from_cp437(cp437: [u8; 31], dialect: &Cp437Dialect) -> Self
impl FromCp437<[u8; 32]> for String
[src]
impl FromCp437<[u8; 32]> for String
fn from_cp437(cp437: [u8; 32], dialect: &Cp437Dialect) -> Self
[src]
fn from_cp437(cp437: [u8; 32], dialect: &Cp437Dialect) -> Self