Struct codepage_437::Cp437Dialect [] [src]

pub struct Cp437Dialect { /* fields omitted */ }

Specifier for the specific kind of cp437.

Dialects are instances of this type, aggregating data necessary to perform conversions.

Methods

impl Cp437Dialect
[src]

[src]

Check, whether the specified Unicode codepoint overlaps with a cp437 one.

[src]

Check, whether the specified cp437 codepoint overlaps with a Unicode one.

[src]

Decode a single cp437 codepoint into a Unicode one.

[src]

Try to encode a single Unicode codepoint as a cp437 one.

[src]

Map the specified cp437 codepoint mapped to the specified unicode character instead.

Examples

Remap to :

let square_root_or_checkmark = CP437_WINGDINGS.encode('√').unwrap();

let mut mapping = CP437_WINGDINGS.clone();
mapping.remap(square_root_or_checkmark, '✓');
assert_eq!(mapping.decode(square_root_or_checkmark), '✓');

Trait Implementations

impl Clone for Cp437Dialect
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Cp437Dialect
[src]

[src]

Formats the value using the given formatter. Read more

impl Hash for Cp437Dialect
[src]

[src]

Feeds this value into the given [Hasher]. Read more

1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl Eq for Cp437Dialect
[src]

impl PartialEq for Cp437Dialect
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

1.0.0
[src]

This method tests for !=.

impl Ord for Cp437Dialect
[src]

[src]

This method returns an Ordering between self and other. Read more

1.21.0
[src]

Compares and returns the maximum of two values. Read more

1.21.0
[src]

Compares and returns the minimum of two values. Read more

impl PartialOrd for Cp437Dialect
[src]

[src]

This method returns an ordering between self and other values if one exists. Read more

1.0.0
[src]

This method tests less than (for self and other) and is used by the < operator. Read more

1.0.0
[src]

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

1.0.0
[src]

This method tests greater than (for self and other) and is used by the > operator. Read more

1.0.0
[src]

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

Auto Trait Implementations

impl Send for Cp437Dialect

impl Sync for Cp437Dialect