Struct gb2260::Division [] [src]

pub struct Division {
    pub code: &'static str,
    pub name: &'static str,
    pub revision: &'static str,
}

The administrative division

Fields

The six-digit number of the specific administrative division

The Chinese name of the specific administrative division

The revision year (month)

Methods

impl Division
[src]

[src]

Return the division of the given code

[src]

Return the division of the given code of the given revision

[src]

List all revisions supported by GB2260

[src]

Return province level division of current division

[src]

[src]

Return prefecture level division of current division

[src]

[src]

Return county level division of current division

[src]

Trait Implementations

impl Debug for Division
[src]

[src]

Formats the value using the given formatter. Read more

impl Clone for Division
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq for Division
[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 Eq for Division
[src]

impl Hash for Division
[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

Auto Trait Implementations

impl Send for Division

impl Sync for Division