Struct ucd_parse::UnicodeDataDecomposition [] [src]

pub struct UnicodeDataDecomposition {
    pub tag: Option<UnicodeDataDecompositionTag>,
    pub len: usize,
    pub mapping: [Codepoint; 18],
}

Represents a decomposition mapping of a single row in the UnicodeData.txt file.

Fields

The formatting tag associated with this mapping, if present.

The number of codepoints in this mapping.

The codepoints in the mapping. Entries beyond len in the mapping are always U+0000. If no mapping was present, then this always contains a single codepoint corresponding to this row's character.

Methods

impl UnicodeDataDecomposition
[src]

[src]

Create a new decomposition mapping with the given tag and codepoints.

If there are too many codepoints, then an error is returned.

[src]

Add a new codepoint to this decomposition's mapping.

If the mapping is already full, then this returns an error.

[src]

Return the mapping as a slice of codepoints. The slice returned has length equivalent to the number of codepoints in this mapping.

[src]

Returns true if and only if this decomposition mapping is canonical.

Trait Implementations

impl Clone for UnicodeDataDecomposition
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for UnicodeDataDecomposition
[src]

[src]

Formats the value using the given formatter. Read more

impl Default for UnicodeDataDecomposition
[src]

[src]

Returns the "default value" for a type. Read more

impl Eq for UnicodeDataDecomposition
[src]

impl PartialEq for UnicodeDataDecomposition
[src]

[src]

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

[src]

This method tests for !=.

impl FromStr for UnicodeDataDecomposition
[src]

The associated error which can be returned from parsing.

[src]

Parses a string s to return a value of this type. Read more

impl Display for UnicodeDataDecomposition
[src]

[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations